From 4d4029afeb5f7f157712e05cc0bd5b27f7a86008 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 28 Nov 2017 14:43:36 -0600 Subject: [PATCH] Update README files --- configs/stm32f4discovery/README.txt | 34 +++++++++++++++++++++++++++++ libnx/nxfonts/README.txt | 10 ++++----- 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/configs/stm32f4discovery/README.txt b/configs/stm32f4discovery/README.txt index ccad49bab81..1cead4669e6 100644 --- a/configs/stm32f4discovery/README.txt +++ b/configs/stm32f4discovery/README.txt @@ -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: =================== diff --git a/libnx/nxfonts/README.txt b/libnx/nxfonts/README.txt index 5a09ee19f04..457d290fd05 100644 --- a/libnx/nxfonts/README.txt +++ b/libnx/nxfonts/README.txt @@ -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