Search found 507 matches
- Wed Aug 26, 2020 4:39 am
- Forum: Drivers for External Components
- Topic: Drivers for EEPROM, FRAM and Flash chips
- Replies: 15
- Views: 74269
Re: Drivers for EEPROM, FRAM and Flash chips
One thing to watch out for when comparing FRAM with SPI Flash is that with FRAM, reads are destructive, and with Flash there's almost unlimited reads but write/erase cycles are limited. The limits may be well beyond the lifetime of your app, but worth a quick investigation.
- Mon Aug 24, 2020 12:57 pm
- Forum: ESP8266 boards
- Topic: ets_delay_us uint16_t changed to uint32_t in >= SDK 2.2.x [SOLVED]
- Replies: 6
- Views: 18492
Re: ets_delay_us uint16_t vs uint32_t
OK so, I have figured out why now. In my case-sensitive.dmg "on the metal" esp-open-sdk, I was bumping the VENDOR_SDK from 2.1.0 to 2.2.1 However... In >= 2.2.0, ets_delay_us() was updated to use a uint32_t! ESP8266_NONOS_SDK-2.1.0 /include/osapi.h void ets_delay_us(uint16_t us); ESP8266_NONOS_SDK-2...
- Mon Aug 24, 2020 12:52 pm
- Forum: ESP8266 boards
- Topic: ets_delay_us uint16_t changed to uint32_t in >= SDK 2.2.x [SOLVED]
- Replies: 6
- Views: 18492
Re: ets_delay_us uint16_t vs uint32_t
Interesting... When I make using docker , it needs to be void ets_delay_us(uint16_t us); . As it is currently in the repo: https://github.com/micropython/micropython/blob/master/ports/esp8266/etshal.h#L9 cd ports/esp8266 docker run --rm -v $HOME:$HOME -u $UID -w $PWD larsks/esp-open-sdk make When I ...
- Sat Aug 22, 2020 3:10 pm
- Forum: Drivers for External Components
- Topic: LCDI2C : equivalent of Arduino's Liquid Crystal (support for custom char)
- Replies: 1
- Views: 3265
Re: LCDI2C : equivalent of Arduino's Liquid Crystal (support for custom char)
Have you seen Dave Hyland's version?
His also works with the common "I2C backpack" (PCF8574), Adafruit's backpack (MCP23008), as well as 4 and 8-bit GPIO:
https://github.com/dhylands/python_lcd
His also works with the common "I2C backpack" (PCF8574), Adafruit's backpack (MCP23008), as well as 4 and 8-bit GPIO:
https://github.com/dhylands/python_lcd
- Sat Aug 22, 2020 2:36 pm
- Forum: ESP8266 boards
- Topic: Write to register MCP lib and MCP23008 on ESP-12F
- Replies: 3
- Views: 2670
Re: Write to register MCP lib and MCP23008 on ESP-12F
ie. to avoid the TypeError, wrap your value in a bytearray: # change io.write_gpio(5) # to io.write_gpio(bytearray([5])) The OLAT register address is 0x0A, but when the port pin is in output mode (pin's IODIR bit =0), you write to the GPIO register instead and it internally updates the OLAT register...
- Sat Aug 22, 2020 2:04 pm
- Forum: ESP8266 boards
- Topic: how to show image in lcd display
- Replies: 1
- Views: 4414
Re: how to show image in lcd display
Here's how you draw some random colours. >>> import random >>> for i in range(400): >>> display.write(None, bytearray([random.getrandbits(8)])) You use display.write(command=None, data=your-bytes) to send pixel data to the display. To understand what it is doing, try writing the same 2 bytes, hundre...
- Sat Aug 22, 2020 1:46 pm
- Forum: ESP8266 boards
- Topic: 16M D1 Mini Pro + SDK 2.2.1
- Replies: 4
- Views: 3489
Re: 16M D1 Mini Pro + SDK 2.2.1
Added issue on Github: https://github.com/micropython/micropython/issues/6359
- Sat Aug 22, 2020 1:23 pm
- Forum: ESP8266 boards
- Topic: 16M D1 Mini Pro + SDK 2.2.1
- Replies: 4
- Views: 3489
Re: 16M D1 Mini Pro + SDK 2.2.1
Quick Fix ™ for 16MB ESP8266 * Download and unzip: https://github.com/espressif/ESP8266_NONOS_SDK/archive/v2.2.1.zip * Grab the /bin/esp_init_data_default_v08.bin * make clean / make / make deploy * Write the esp_init_data_default_v08.bin: esptool.py --port /dev/tty.SLAB_USBtoUART --baud 460800 writ...
- Sat Aug 22, 2020 1:18 pm
- Forum: ESP8266 boards
- Topic: 16M D1 Mini Pro + SDK 2.2.1
- Replies: 4
- Views: 3489
Re: 16M D1 Mini Pro + SDK 2.2.1
Tried flashing latest MicroPython to my 4M D1 mini (with SDK 2.2.1). Worked fine. LINK build-GENERIC/firmware.elf text data bss dec hex filename 616260 1020 66504 683784 a6f08 build-GENERIC/firmware.elf Create build-GENERIC/firmware-combined.bin esptool.py v2.8 Creating image for ESP8266... flash 33...
- Sat Aug 22, 2020 1:13 pm
- Forum: ESP8266 boards
- Topic: 16M D1 Mini Pro + SDK 2.2.1
- Replies: 4
- Views: 3489
Re: 16M D1 Mini Pro + SDK 2.2.1
Output of make deploy on 16MB D1 mini pro: make PORT=/dev/tty.SLAB_USBtoUART deploy ... LINK build-GENERIC/firmware.elf text data bss dec hex filename 616260 1020 66504 683784 a6f08 build-GENERIC/firmware.elf Create build-GENERIC/firmware-combined.bin esptool.py v2.8 Creating image for ESP8266... fl...