I am in the process of updating Half-Byte Embedded Tiny Basic. The new Volt function, the Year function and a few other enhancements are on the way.
As with HB Tiny Basic 3, the Volt function returns the system reference voltage:
200 V=VOLT(0) 210 PRINT "Voltage is ",V,".",V%1000
So, if your reference voltage is 4.930 volts, the VOLT function would return:
The code snippet above would return:
Voltage is 4.930
Year(0) simply returns the current year if you have an RTC attached.
Other enhancements will include:
Support for limited LED animation
Ability to utilize a light sensor to dim the LED array based on lighting in the area.
And, one idea I am toying with–and it would depend on the amount of free space left–is some limited support for an LCD screen. I have not yet decided if it would be of the 2×16 variety or something like a Nokia 5110. Again, it depends on the amount storage that is left.
Tokenizing the language would save a ton of SRAM for your apps, so I am looking into doing this as well. I have been looking at how others do it and I don’t think It would be very difficult to retro fit it into the language. Of course, I could just start over…