diff --git a/src/lcd/eboled.h b/src/lcd/eboled.h index 535bfba8..bd6f3d08 100644 --- a/src/lcd/eboled.h +++ b/src/lcd/eboled.h @@ -45,6 +45,14 @@ namespace upm { + const uint8_t COLOR_WHITE = 0x01; + const uint8_t COLOR_BLACK = 0x00; + const uint8_t COLOR_XOR = 0x02; + const uint8_t OLED_WIDTH = 0x40; // 64 pixels + const uint8_t VERT_COLUMNS = 0x20; // half width for hi/lo 16bit writes. + const uint8_t OLED_HEIGHT = 0x30; // 48 pixels + const int BUFFER_SIZE = 192; + /** * @library i2clcd * @sensor eboled @@ -73,15 +81,6 @@ namespace upm * * @snippet eboled.cxx Interesting */ - - const uint8_t COLOR_WHITE = 0x01; - const uint8_t COLOR_BLACK = 0x00; - const uint8_t COLOR_XOR = 0x02; - const uint8_t OLED_WIDTH = 0x40; // 64 pixels - const uint8_t VERT_COLUMNS = 0x20; // half width for hi/lo 16bit writes. - const uint8_t OLED_HEIGHT = 0x30; // 48 pixels - const int BUFFER_SIZE = 192; - class EBOLED : public LCD { // SSD commands diff --git a/src/lcd/lcm1602.h b/src/lcd/lcm1602.h index e2fc5124..6c260827 100644 --- a/src/lcd/lcm1602.h +++ b/src/lcd/lcm1602.h @@ -62,7 +62,10 @@ namespace upm * an I2C expander/backpack. * * @image html lcm1602.jpeg - * @snippet lcm1602-lcd.cxx Interesting + * Example for LCM1602 displays that use the I2C bus + * @snippet lcm1602-i2c.cxx Interesting + * Code sample for GPIO based LCM1602 displays + * @snippet lcm1602-parallel.cxx Interesting */ class Lcm1602 : public LCD { diff --git a/src/lcd/sainsmartks.h b/src/lcd/sainsmartks.h index 643fa477..fa4e4ccf 100644 --- a/src/lcd/sainsmartks.h +++ b/src/lcd/sainsmartks.h @@ -47,7 +47,7 @@ namespace upm * controller. This driver should also be compatible with the similar LCD * keypad shields from DFRobot and Sparkfun. * - * @image keypadlcd.jpg + * @image html keypadlcd.jpg * @snippet sainsmartks.cxx Interesting */ class SAINSMARTKS : public Lcm1602