mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-16 12:51:47 +00:00
Minor formatting updates to the SerialToLCD project.
This commit is contained in:
parent
2e757d8c38
commit
bd3f6794dd
@ -43,11 +43,11 @@
|
||||
#include <avr/power.h>
|
||||
|
||||
/* Macros: */
|
||||
#define RS (0x10) // PD4
|
||||
#define ENABLE (0x80) // PD7
|
||||
#define RS (1 << 4) /* PD4 */
|
||||
#define ENABLE (1 << 7) /* PD7 */
|
||||
|
||||
#define HI4_MASK (0xF0)
|
||||
#define LO4_MASK (0x0F) // PD0..3
|
||||
#define HI4_MASK 0xF0
|
||||
#define LO4_MASK 0x0F /* PD0-PD3 */
|
||||
|
||||
#define ALL_BITS (RS | ENABLE | LO4_MASK)
|
||||
|
||||
|
@ -33,31 +33,6 @@
|
||||
*
|
||||
* Main source file for the SerialToLCD program. This file contains the main tasks of
|
||||
* the project and is responsible for the initial application hardware configuration.
|
||||
*
|
||||
* \section Hardware Information
|
||||
*
|
||||
* LCD Datasheet: See http://www.sparkfun.com/datasheets/LCD/HD44780.pdf
|
||||
*
|
||||
* Also see the two articles from EPE which are linked from here:
|
||||
* http://en.wikipedia.org/wiki/HD44780_Character_LCD
|
||||
*
|
||||
* Connections from the Minimus to the HD44780 as shown below.
|
||||
*
|
||||
* ========================================================= \n
|
||||
* Minimus HD44780 Pin \n
|
||||
* ========================================================= \n
|
||||
* PD0 DB4 11 \n
|
||||
* PD1 DB5 12 \n
|
||||
* PD2 DB6 13 \n
|
||||
* PD3 DB7 14 \n
|
||||
* \n
|
||||
* PD4 RS 4 \n
|
||||
* RW 5 GND \n
|
||||
* PD7 EN 6 \n
|
||||
* \n
|
||||
* 1 GND \n
|
||||
* 2 USB +5V \n
|
||||
* 3 2k -> GND \n
|
||||
*/
|
||||
|
||||
#include "SerialToLCD.h"
|
||||
|
@ -47,5 +47,51 @@
|
||||
* designed to use the Minimum USB AVR board, however it can be modified to suit other hardware
|
||||
* if desired.
|
||||
*
|
||||
* See comments in the SerialToLCD.c source file for hardware pinouts of the Minimus board.
|
||||
* LCD Datasheet: http://www.sparkfun.com/datasheets/LCD/HD44780.pdf \n
|
||||
* More Information: http://en.wikipedia.org/wiki/HD44780_Character_LCD \n
|
||||
*
|
||||
* Below are the connections between the AVR Minimus board and LCD.
|
||||
*
|
||||
* <table>
|
||||
* <tr>
|
||||
* <td><b>AVR Pin:</b></td>
|
||||
* <td><b>HD44780 LCD Pin:</b></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>VCC</td>
|
||||
* <td>VCC</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>GND</td>
|
||||
* <td>GND</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>PD0</td>
|
||||
* <td>DB4</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>PD1</td>
|
||||
* <td>DB5</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>PD2</td>
|
||||
* <td>DB6</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>PD3</td>
|
||||
* <td>DB7</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>PD4</td>
|
||||
* <td>/RS</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>GND</td>
|
||||
* <td>/RW</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td>PD7</td>
|
||||
* <td>/E</td>
|
||||
* </tr>
|
||||
* </table>
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user