Hello.
I had a Noritake VFD module lying around, and decided to make a clock out of it.
Since it is HD47780 compatible, there were no issues for main display code, as you can see from the attached picture.
And since this is 2x20 lines display, it is logical that for clock setup menu I'd like to use text, rather than icons or numbers.
This is the text strings I'd like to use in the setup menu.
Total, 21 lines of text.Code:Set Year Set Month Set Date Set day of week Set Hour Set Minute Set alarm mode Off On all week On without weekends Set alarm hours Set alarm minutes Set display format Imperial (12Hr/F) Metric (24Hr/C) Display brightness Auto 25% 50% 75% 100%
In a "classic", old school basic, I would do it via arrays, say like this:
and so on, and when needed to display that text in the code belowCode:DIM A$(21) ' declare string array A$(1)="Set Year" A$(2)="Set Month"
I would just write
LCDOUT $FE, $C0, A$(2) or whatever number needed
With PBP I can't, so I have to introduce 21 separate LCDOUT statements.
So is there a way to avoid this?




Bookmarks