nekromant / esp8266-frankenstein

Alternative firmware for ESP8266 modules
318 stars 71 forks source link

Handle ';' in command lines. #78

Closed hpeyerl closed 9 years ago

hpeyerl commented 9 years ago

Supports ';' in the following ways:

arg;arg arg; arg arg ;arg arg ; arg

e.g.:

frankenstein > gpio in 0;gpio in 0 GP0==1

GP0==1

frankenstein > gpio in 0 ; gpio in 0 GP0==1

GP0==1

frankenstein > gpio in 0; gpio in 0 GP0==1

GP0==1

frankenstein > gpio in 0 ;gpio in 0 GP0==1

GP0==1

frankenstein > gpio in 0 ; gpio in 0 GP0==1

GP0==1

Also adds support for executing $bootcmd if it is set, a'la u-boot:

=== Press enter to activate this console === Running bootcmd: i2c init 5 2; i2c scan

frankenstein > i2c init 5 2; i2c scan Init i2c bus on GPIO5:GPIO2 ok

Enumeration i2c bus...

Found device on 0x00. Unknown device (0). Found device on 0x80. SHT21? HTU21? SI7020?