Izmijenjeno u odnosu na SoftwareSPI
Fork of N5110 by
Diff: N5110.h
- Revision:
- 20:b627f726b323
- Parent:
- 19:ba8addc061ea
--- a/N5110.h Thu Apr 23 18:57:52 2015 +0000 +++ b/N5110.h Wed May 25 07:59:24 2016 +0000 @@ -30,7 +30,7 @@ #define CMD_BI_MUX_48 0x13 #define CMD_BI_MUX_100 0x10 #define CMD_VOP_6V06 0xB2 -#define CMD_VOP_7V38 0xC8 +#define CMD_VOP_7V38 0xC0 // number of pixels on display #define WIDTH 84 @@ -38,6 +38,7 @@ #define BANKS 6 #include "mbed.h" +#include "SWSPI.h" /** @brief Library for interfacing with Nokia 5110 LCD display (https://www.sparkfun.com/products/10168) using the hardware SPI on the mbed. @@ -330,7 +331,7 @@ unsigned char buffer[84][6]; // screen buffer - the 6 is for the banks - each one is 8 bits; private: // private variables - SPI* spi; + SWSPI* spi; PwmOut* led; DigitalOut* pwr; DigitalOut* sce;