for ST7567 LCD
Fork of st7565LCD by
Revision 2:0e21d2f2155a, committed 2016-08-30
- Comitter:
- ryood
- Date:
- Tue Aug 30 11:56:52 2016 +0000
- Parent:
- 1:29ff79184a05
- Commit message:
- Add function: set_spi_frequency()
Changed in this revision
st7565LCD.cpp | Show annotated file Show diff for this revision Revisions of this file |
st7565LCD.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 29ff79184a05 -r 0e21d2f2155a st7565LCD.cpp --- a/st7565LCD.cpp Sat Jan 09 12:21:39 2016 +0000 +++ b/st7565LCD.cpp Tue Aug 30 11:56:52 2016 +0000 @@ -392,7 +392,10 @@ _spi.frequency(1000000); } - +void ST7565::set_spi_frequency(int frequency) +{ + _spi.frequency(frequency); +} void ST7565::st7565_init(void) {
diff -r 29ff79184a05 -r 0e21d2f2155a st7565LCD.h --- a/st7565LCD.h Sat Jan 09 12:21:39 2016 +0000 +++ b/st7565LCD.h Tue Aug 30 11:56:52 2016 +0000 @@ -119,6 +119,8 @@ uint8_t color);*/ uint8_t _BV(uint8_t bit); uint8_t _nBV(uint8_t bit); + + void set_spi_frequency(int frequency); };