I have posted a new version of Half-Byte Tiny Basic v3. You can grab the .ino file here. If you already downloaded v3, download the new .ino file and is should compile in Arduino 1.6.x. I made sure it compiled in 1.6.7 before uploading it. It is the same as the previous version, except that it has one new function: VOLT(0).
VOLT returns the reference voltage as an integer in the thousands. Divide by 1000 and get the remainder. You can do so like this:
100 CLS 110 V=VOLT(0) 120 A=V/1000:B=V%1000 130 PRINT "THE REFERENCE VOLTAGE IS:",A,".",B Run the code. Say your board's voltage is 4.954 volts, the output would be: THE REFERENCE VOLTAGE IS:4.954
Of course, you don’t need to divide it, you simply use the returned value to get a better reading on an analog pin. Use it to monitor a sensor, etc. TREAD works in a similar way as well.
The next version of the language will include more low level hardware interfacing to make controlling motors and other things much easier.
Please try this version and let me know, via the comments, if you had problems compiling and uploading to your board. Feel free to comment on the language, what you like, don’t like, etc. I do listen and have incorporated many suggestions and will credit what ever I use.