Skip to content

Commit 3efbb0f

Browse files
committed
add wiring to example readme
1 parent d0e5ab7 commit 3efbb0f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

app_counter/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
##Serial Display Example Application Counter
2-
TODO.
2+
The example program counts on the display whenever button inputs are activated. On reset, the program will write "PUSH" on the display. Pressing buttons will cause the text to be replaced by a counter. The counter can be incremented / decremented with buttons.
33

44
###Required Modules
55
For an xCore xC application, the required modules are listed in the Makefile:
66
- USED_MODULES = module_seven_seg
77

88
###Wiring
9-
TODO.
9+
The SparkFun display unit offers several serial interface choices includng I2C, SPI and UART. For the driver UART was used, and thus only the one **RX** signal needs connected (in addition to the display power). My breadboard used the LSB of a 4 bit XCore port, the other 3 bits of 4C being unused. A 1 bit port would normally be selected for such a use. The buttons are wired to a 4 bit port 4E for input, and the pull-down resistors enabled. This means the buttons need to pull up to 3.3V when pressed. The example uses 4 buttons.
10+
- **J7.5** Transmit serial data (wire to display **RX** input).
11+
- **J7.24** UP button.
12+
- **J7.22** DOWN button.
13+
- **J7.16** UP-by-100 button.
14+
- **J7.18** DOWN-by-100 button.
1015

0 commit comments

Comments
 (0)