Tachyon newbie question re BLINKY
pmulvey
Posts: 24
in Propeller 1
I have managed "Twinkle Twinkle Little Star" on your piano:
However but when I try something a little harder such as:
It would seem that when I am issuing commands from my ESP to do something like PWM or generate tones I have to issue a series of a commands like a script rather than a single command.
10 FOR 0 HIGH 20 ms 0 LOW 20 ms NEXTThe LED flashes... happy days!
However but when I try something a little harder such as:
:BLINKY 10 for 1 HIGH 100 ms 1 LOW 100ms NEXT;The terminal reports back this:
... :BLINKY ??? 10 for ??? 1 HIGH 100 ms 1 LOW 100ms ??? NEXT; ??? --> ok
It would seem that when I am issuing commands from my ESP to do something like PWM or generate tones I have to issue a series of a commands like a script rather than a single command.
Comments
Tyoe WORDS to list out the dictionary and you will see : and ; have an entry. What you type can only be recognized if it is in the dictionary or it is a number, or some kind of special literal.
BTW, taking into account that you need a space, have a look at Hello World and notice where the spaces are.
HINT: PRINT" or ." are words
Have a look at EXTEND.FTH source and you might be able to see where it starts up at boot, checks for any user init routines, and also starts up a background timing task in another cog etc.
btw - try the inbuilt blinky routine and type then speed it up
hi @pmulvey good to see new Tachyon users here.
instead of having many little threads about Tachyon we have been using the thread for the current version like
https://forums.parallax.com/discussion/167165/tachyon-neon-v5-fat32-and-ethernet-servers-in-32kb-eeprom#latest
makes it easier to search and browse