This demo shows a TinyBasic interpreter running on Pokitto.
When Pokitto starts, the program establishes a USB Serial port on the PC
You can “talk” to the BASIC by using a terminal program, such as PuTTY. Baud settings can be anything (9600 for example), because on virtual serial ports it has no relevance.
Typical BASIC commands work.
Source code has been uploaded to PokittoLib repository.
The point of the demo is to show how USBSerial connections between Pokitto and the PC are made.
This demo should work out of the box on a Windows PC, no need for drivers.
basic.bin is Basic interpreter running on Pokitto. You connect and write to it using the keyboard of your computer.
In short:
put binary on Pokitto (you can also load it from SD card)
download & install a “terminal program”, for example TeraTerm or PuTTY. You can also use the serial monitor of Arduino IDE. Note: this is on the PC, not Pokitto
Connect Pokitto to PC
A new COM port should appear (Windows) or a new serial device (Linux/Mac) on the Pc
Run terminal program on PC and connect to the COM port
You can now control the Pokitto as if it was a traditional Basic computer (like C64 or ZX Spectrum)
I have just tested it and it works but not entirely correct (I think?):
a program like 10 PRINT "TEST runs without giving a syntax error
also when the line of code reaches the right part of the pokitto screen, nothing additional can be added:
for example 10 PRINT "The line is too long cannot be entered, I get 10 PRINT "The line is too (however this runs without a problem
If we could plug in a keyboard without using a computer in between now that would get me excited… As it is I am not sure of the point playing for example Zork on the pokitto while in front of a computer… Did I miss something? J must have right?
if been working a lot with ps2 keyboards and the lib for arduino
there are examples for tiny basic with display(check) and ps2 keyboard.
i build such structures and its easy and great. if you use ps2 keyboard you can make an hardware adapter from ps2(pins) to usb female port…like a hat. cheap keyboard controllers often work.
here a video
maybe this could be a way… i like this basic things
imagine if we could save programs to sd or auto run or…
thanks for the work
So how come the Pokitto version is 60.1 K? That doesn’t sound so tiny. Is it because of all the libraries it includes? Is this actually an “extra-large” tiny basic?
The first tiny basics were written for early home computers, which had 8 bit processors and 4 kilobytes or less of ram.
These computers were used with terminals or teletypes, so they didn’t need memory for fonts or graphics.
Microsoft basic ran in 4k but there was little memory left for the basic program and Bill Gates was angry that people were pirating his basic interpreter, so people wrote tiny basics that occupied minimal memory and could be shared.