Update README files
This commit is contained in:
parent
1338360ff7
commit
4d4029afeb
@ -33,6 +33,7 @@ Contents
|
||||
- PWM
|
||||
- UARTs
|
||||
- Timer Inputs/Outputs
|
||||
- Nintendo Wii Nunchuck
|
||||
- Quadrature Encoder
|
||||
- FPU
|
||||
- STM32F4DIS-BB
|
||||
@ -218,6 +219,39 @@ TIM14
|
||||
free I/O pins.
|
||||
** Port H pins are not supported by the MCU
|
||||
|
||||
Nintendo Wii Nunchuck:
|
||||
======================
|
||||
|
||||
There is a driver on NuttX to support Nintendo Wii Nunchuck Joystick. If you
|
||||
want to use it please select these options:
|
||||
|
||||
- Enable the I2C1 at System Type -> STM32 Peripheral Support, it will enable:
|
||||
|
||||
CONFIG_STM32_I2C1=y
|
||||
|
||||
- Enable to Custom board/driver initialization at RTOS Features -> RTOS hooks
|
||||
|
||||
CONFIG_BOARD_INITIALIZE=y
|
||||
|
||||
- Enable the I2C Driver Support at Device Drivers, it will enable this symbol:
|
||||
|
||||
CONFIG_I2C=y
|
||||
|
||||
- Nintendo Wii Nunchuck Joystick at Device Drivers -> [*] Input Device Support
|
||||
|
||||
CONFIG_INPUT=y
|
||||
CONFIG_INPUT_NUNCHUCK=y
|
||||
|
||||
- Enable the Nunchuck joystick example at Application Configuration -> Examples
|
||||
|
||||
CONFIG_EXAMPLES_NUNCHUCK=y
|
||||
CONFIG_EXAMPLES_NUNCHUCK_DEVNAME="/dev/nunchuck0"
|
||||
|
||||
You need to connect GND and +3.3V pins from Nunchuck connector to GND and 3V
|
||||
of stm32f4discovery respectively (Nunchuck also can work connected to 5V, but
|
||||
I don't recommend it). Connect I2C Clock from Nunchuck to SCK (PB6) and the
|
||||
I2C Data to SDA (PB9).
|
||||
|
||||
Quadrature Encoder:
|
||||
===================
|
||||
|
||||
|
@ -151,13 +151,13 @@ CONFIG_NXFONTS
|
||||
CONFIG_NXFONTS_CHARBITS
|
||||
The number of bits in the character set. Current options are only 7 and 8.
|
||||
The default is 7.
|
||||
CONFIG_NX_DISABLE_1BPP, CONFIG_NX_DISABLE_2BPP,
|
||||
CONFIG_NX_DISABLE_4BPP, CONFIG_NX_DISABLE_8BPP,
|
||||
CONFIG_NX_DISABLE_16BPP, CONFIG_NX_DISABLE_24BPP, and
|
||||
CONFIG_NX_DISABLE_32BPP
|
||||
CONFIG_NXFONTS_DISABLE_1BPP, CONFIG_NXFONTS_DISABLE_2BPP,
|
||||
CONFIG_NXFONTS_DISABLE_4BPP, CONFIG_NXFONTS_DISABLE_8BPP,
|
||||
CONFIG_NXFONTS_DISABLE_16BPP, CONFIG_NXFONTS_DISABLE_24BPP, and
|
||||
CONFIG_NXFONTS_DISABLE_32BPP
|
||||
NX supports a variety of pixel depths. You can save some memory by disabling
|
||||
support for unused color depths.
|
||||
CONFIG_NX_PACKEDMSFIRST
|
||||
CONFIG_NXFONTS_PACKEDMSFIRST
|
||||
If a pixel depth of less than 8-bits is used, then NX needs to know if the
|
||||
pixels pack from the MS to LS or from LS to MS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user