Created
February 19, 2019 18:00
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls /dev/tty.* | |
/dev/tty.SLAB_USBtoUART |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ miniterm.py /dev/tty.SLAB_USBtoUART 115200 | |
コマンドから抜けたい時は、ctrl+]を押す。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>iodir 23,0 | |
>print ioget(23) | |
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ screen /dev/tty.SLAB_USBtoUART 115200 | |
コマンドから抜けたい時は、ctrl+Aを押して、Kを押す。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 --- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>about | |
ESP32 ROM Basic (c) 2016 Espressif Shanghai | |
Derived from TinyBasic Plus by Mike Field and Scott Lawrence |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>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!! "; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>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 | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>help | |
A very Basic ROM console. Available commands/functions: | |
LIST | |
NEW | |
RUN | |
NEXT | |
LET | |
IF | |
GOTO | |
GOSUB | |
RETURN | |
REM | |
FOR | |
INPUT | |
PHEX | |
POKE | |
STOP | |
BYE | |
MEM | |
? | |
' | |
DELAY | |
END | |
RSEED | |
HELP | |
ABOUT | |
IOSET | |
IODIR | |
PEEK | |
ABS | |
RND | |
IOGET | |
USR | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>new | |
> | |
>mem | |
32560 bytes free. | |
> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment