microsoft / pxt-adafruit

Microsoft MakeCode editor for Adafruit Circuit Playground Express
https://makecode.adafruit.com
Other
81 stars 77 forks source link

wifi sockets #727

Open ladyada opened 6 years ago

ladyada commented 6 years ago

i was cleaning up my filesystem and noticed i had an old idea/design for a CPX bolt-on that would add WiFi

in short - i think PXT w/ internet would be neat. BUT the low cost ESP family doesnt have native USB or a lot of pins. i suppose we could make an mbed bootloader for ESP32 but i'm still seeing some issues with that chip (e.g. no neopixel support, i2c iffy) altho i could see that stuff being resolved. maybe having some sort of 'bolt on' kit for CPX/microbit could work where it gives you a sockets pipe thru an ESP8266?

we could use seesaw to give us a I2C <-> UART interface (0.50 cent chip with a huge amount of memory for buffering UART data) and we could use AT commandset? side benefit is you can use it to load new firmware on over I2C too. there's a somewhat working AT commandset for ESP right now. but its old, and isn't awesomepants. cell modules have a nicer AT commandset that could be ported to ESP

something else?

pelikhan commented 6 years ago

We have seesaw supported in MakeCode, does this open the door to all these improvements?

ladyada commented 6 years ago

hardware wise, it would just do the underlying data couriering. that's not the hard part. hard part is having socket/https supported in makecode/codal natively basically, was there every a plan to IoTify MakeCode? i dont think its anytime soon but if it were, i have a use for it :)

pelikhan commented 6 years ago

I wonder if James looked into it at some point. I think this is probably something that community/partner should build as a package.

pelikhan commented 6 years ago

Speaking of seesaw, you should now be able to port seesaw-based CircuitPython libraries to makecode fairly easily.

ladyada commented 6 years ago

kk - we have a couple seesaw-based feathers but crickit is the big'un.

pelikhan commented 5 years ago

This idea morphed into the Esp32SPI bridge?

ladyada commented 5 years ago

right now yep all we have is this SPI based code https://github.com/ladyada/Adafruit_CircuitPython_ESP32SPI you need 4 pins (SPI) + 1 busy state and 1 reset pin

ladyada commented 5 years ago

(id like to look at i2c slave for ESP32 but given the prediliction for the chip to go off into space, that may not be possible)