Author Topic: How to use variables  (Read 530 times)

BumpSplat

  • Newbie
  • *
  • Posts: 3
  • Karma: 0
    • View Profile
How to use variables
« on: June 20, 2018, 03:42:15 PM »
Part Number: NHD-0216MW-SB3

I'm clearly missing something here.  I can't seem to successfully write a variable to my display.  I can successfully write an explicitly defined character but can't seem to get a variable to work...

Works:
update_display.bottom_row[7] = '1';

Doesn't work:

    char        character  =4;
    uint8_t    var           =5;

update_display.bottom_row[7] = character;
update_display.bottom_row[7] = var;

what am I missing? :)

Thanks in advance!

Tim

 

NHD-0420CW-AB3-ND Display variables

Started by homerjayBoard OLEDs

Replies: 3
Views: 4061
Last post January 22, 2018, 04:59:53 PM
by DataL