Skip to content

Instantly share code, notes, and snippets.

@Naohiro2g
Created February 19, 2019 18:00
Show Gist options
  • Save Naohiro2g/032c5f406d4aa193c1ea6e48dc6e5240 to your computer and use it in GitHub Desktop.
Save Naohiro2g/032c5f406d4aa193c1ea6e48dc6e5240 to your computer and use it in GitHub Desktop.
ESP32 ROM BASICでhello world & Lチカ ref: https://qiita.com/naohiro2g/items/1ddb03e8647f2b3b2d38
ls /dev/tty.*
/dev/tty.SLAB_USBtoUART
$ miniterm.py /dev/tty.SLAB_USBtoUART 115200
コマンドから抜けたい時は、ctrl+]を押す。
>iodir 23,0
>print ioget(23)
1
$ screen /dev/tty.SLAB_USBtoUART 115200
コマンドから抜けたい時は、ctrl+Aを押して、Kを押す。
$ miniterm.py /dev/cu.SLAB_USBtoUART 115200
--- Miniterm on /dev/cu.SLAB_USBtoUART 115200,8,N,1 ---
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H ---
>ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
>about
ESP32 ROM Basic (c) 2016 Espressif Shanghai
Derived from TinyBasic Plus by Mike Field and Scott Lawrence
>10 IODIR 2,1
>
>20 IOSET 2,1
>
>30 DELAY 375
>
>40 IOSET 2,0
>
>50 DELAY 125
>
>60 GOTO 20
>
>25 PRINT "hello world!! ";
>run
hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! hello world!! break!
OK
>list
10 IODIR 2,1
20 IOSET 2,1
25 PRINT "hello world!! ";
30 DELAY 375
40 IOSET 2,0
50 DELAY 125
60 GOTO 20
OK
>
>help
A very Basic ROM console. Available commands/functions:
LIST
NEW
RUN
NEXT
LET
IF
GOTO
GOSUB
RETURN
REM
FOR
INPUT
PRINT
PHEX
POKE
STOP
BYE
MEM
?
'
DELAY
END
RSEED
HELP
ABOUT
IOSET
IODIR
PEEK
ABS
RND
IOGET
USR
>
>new
>
>mem
32560 bytes free.
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment