You are browsing as a guest. Sign up (or log in) to start making projects!

2h 55m 43s logged

Updated the firmware and ordered my PCB and parts!

In this devlog, I’ve added a new function to my custom BASIC interpreter for my development board, and finally sent my PCB for manufacturing!

It took me quite a while to write the random number function that the old BASIC interpreters used to have: RND. I did many rounds of trial and error to finally create a working code (the previous code was returning either nothing or throwing compiler errors due to data types):

printf("%f\n", (float)rand() / (float)RAND_MAX);

Here’s a sample program you could run that generates a random number, stores it in a variable and prints it:

10 let x = rnd
20 lsvar
30 print x

Now, I’ll be working on support for comments in my interpreter and wait for my parts to come. I can’t wait to assemble my macropad + dev board!

0
4

Comments 0

No comments yet. Be the first!