<commit_before>How to flash Espruino esp8266
=============================

*** To flash a 512KB esp8266 (e.g. esp-01) using the serial port use:
esptool.py --port [/dev/ttyUSB0|COM1] --baud 460800 write_flash \
  --flash_freq 40m --flash_mode qio --flash_size 4m \
  0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin 0x7E000 blank.bin

*** To flash a 4MB esp8266 (e.g. esp-12) using the serial port use:
esptool.py --port [/dev/ttyUSB0|COM1] --baud 460800 write_flash \
  --flash_freq 80m --flash_mode qio --flash_size 32m \
  0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin 0x37E000 blank.bin

*** Get esptool.py from https://github.com/themadinventor/esptool

*** To flash a 4MB esp8266 (e.g. esp-12) via wifi use (with appropriate hostname):
./wiflash espruino.local:88 espruino_esp8266_user1.bin espruino_esp8266_user2.bin
<commit_msg>fix small error in esp8266 readme_flash<commit_after>How to flash Espruino esp8266
=============================

*** To flash a 512KB esp8266 (e.g. esp-01) using the serial port use:
esptool.py --port [/dev/ttyUSB0|COM1] --baud 460800 write_flash \
  --flash_freq 40m --flash_mode qio --flash_size 4m \
  0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin 0x7E000 blank.bin

*** To flash a 4MB esp8266 (e.g. esp-12) using the serial port use:
esptool.py --port [/dev/ttyUSB0|COM1] --baud 460800 write_flash \
  --flash_freq 80m --flash_mode qio --flash_size 32m \
  0x0000 "boot_v1.4(b1).bin" 0x1000 espruino_esp8266_user1.bin 0x37E000 blank.bin

*** Get esptool.py from https://github.com/themadinventor/esptool

*** To flash a 4MB esp8266 (e.g. esp-12) via wifi use (with appropriate hostname):
./scripts/wiflash espruino.local:88 espruino_esp8266_user1.bin espruino_esp8266_user2.bin

{'fraction_non_alphanumeric': 0.14699205448354144, 'fraction_numerical': 0.12599318955732122, 'mean_word_length': 4.231454005934718, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5695092', 'n_tokens_mistral': 835, 'n_tokens_neox': 696, 'n_words': 177}