i2clcd: replace #define with const data inside the namespace.

This keeps the constants in the correct scope and avoid potential
naming conflicts with other files.

Signed-off-by: Wouter van Verre <wouter.van.verre@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Wouter van Verre
2015-04-20 16:35:19 +01:00
committed by Mihai Tudor Panu
parent 31c4f470fe
commit 479a9553f6
4 changed files with 41 additions and 41 deletions

View File

@@ -26,13 +26,13 @@
namespace upm
{
#define DISPLAY_CMD_OFF 0xAE
#define DISPLAY_CMD_ON 0xAF
const uint8_t DISPLAY_CMD_OFF = 0xAE;
const uint8_t DISPLAY_CMD_ON = 0xAF;
#define BASE_LOW_COLUMN_ADDR 0x00
#define BASE_HIGH_COLUMN_ADDR 0x10
#define BASE_PAGE_START_ADDR 0xB0
#define DISPLAY_CMD_MEM_ADDR_MODE 0x20
const uint8_t BASE_LOW_COLUMN_ADDR = 0x00;
const uint8_t BASE_HIGH_COLUMN_ADDR = 0x10;
const uint8_t BASE_PAGE_START_ADDR = 0xB0;
const uint8_t DISPLAY_CMD_MEM_ADDR_MODE = 0x20;
const uint8_t BasicFont[][8] = { { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },
{ 0x00, 0x00, 0x5F, 0x00, 0x00, 0x00, 0x00, 0x00 },