added lcd snake to projects

This commit is contained in:
2014-12-29 22:43:01 +01:00
parent bbaf8bad62
commit 03658ad213
25 changed files with 2438 additions and 189 deletions
+18 -1
View File
@@ -6,7 +6,6 @@
#include <avr/pgmspace.h>
#include <util/delay.h>
#include "arduino_pins.h"
#include "calc.h"
#include "pins.h"
#include "nsdelay.h"
@@ -103,6 +102,10 @@ void lcd_xy(const uint8_t x, const uint8_t y);
void lcd_set_addr_cgram(const uint8_t acg);
/** Set address in DDRAM */
void lcd_set_addr(const uint8_t add);
/** Go home */
void lcd_home();
/** Clear the screen */
void lcd_clear();
/** Set cursor */
#define CURSOR_NONE 0b00
@@ -340,6 +343,20 @@ void lcd_enable()
}
/** Go home */
void lcd_home()
{
lcd_write_command(LCD_HOME);
}
/** Clear the screen */
void lcd_clear()
{
lcd_write_command(LCD_CLEAR);
}
/** Define a glyph */
void lcd_define_glyph(const uint8_t index, const uint8_t* array)
{
+1 -1
View File
@@ -1,7 +1,7 @@
#pragma once
/**
Utils for driving a WS2812 (WS2812B) RGB LED strips.
Utils for driving a WS28xx (tested on WS2812B) RGB LED strips.
It's implemented as macros to avoid overhead when passing values, and to
enable driving multiple strips at once.