.. leading zeros are required for `frontmatter` to treat them as dates
rather than strings, apparently per the YAML specification.
This was done by script:
```py
import re
import datetime
import pathlib
import sys
import frontmatter
rx = re.compile(r'^(\s*)date_added:.*$', re.M)
for path_str in sys.argv[1:]:
print(path_str)
path = pathlib.Path(path_str)
post = frontmatter.load(path)
date_added = post.get("date_added", "")
if isinstance(date_added, datetime.date):
continue
if isinstance(date_added, str):
try:
date_added = datetime.datetime.strptime(date_added, "%Y-%m-%d")
except ValueError as exc:
print(f"Failed to parse date {date_added} in {path_str}: {exc}")
continue
date_added = date_added.date()
content = path.read_text("utf-8")
new_content = rx.sub(lambda m: f"{m.group(1)}date_added: {date_added}", content)
assert content != new_content
path.write_text(new_content, "utf-8")
```
46 lines
3.5 KiB
Markdown
46 lines
3.5 KiB
Markdown
---
|
|
layout: download
|
|
board_id: "espruino_wifi"
|
|
title: "Espruino WiFi Download"
|
|
name: "Espruino WiFi"
|
|
manufacturer: "Espruino"
|
|
board_url:
|
|
- "https://www.adafruit.com/product/3514"
|
|
board_image: "espruino_wifi.jpg"
|
|
date_added: 2020-02-13
|
|
family: stm
|
|
features:
|
|
- Wi-Fi
|
|
- Breadboard-Friendly
|
|
---
|
|
|
|
Try the JavaScript of things with the **Espruino WiFi** - the world's first open-source JavaScript microcontroller, this time with built in WiFi! This little board has an STM32 microcontroller pre-programmed with Espruino all ready to go so you can start playing with Javascript-microcontrollers. It also comes with an ESP8266 WiFi module, so you can connect to the Internet using Espruino. **Warning:** if you only use Assembly and think that even embedded C/C++ is for wimps, this device might explode your head.
|
|
|
|
The Espruino is a tiny computer with a JavaScript interpreter, allowing for instant feedback from whatever device you're working with. Simply set up your code with the Espruino and send it to the device without having to wait for the board to 'flash. With the new Espruino WiFi you get the best of Javascript with Internet connectivity.
|
|
|
|
Once you've uploaded code, you can inspect and change variables (including functions!) while your program is running. There's loads of [documentation](http://www.espruino.com/Reference), [tutorials](http://www.espruino.com/Tutorials) and support for a [huge range of different hardware](http://www.espruino.com/Modules) too. See [how to get started here](http://www.espruino.com/Quick+Start), or if you have any questions ask away [on the Espruino forums](http://forum.espruino.com/)!
|
|
|
|
**Features**
|
|
- 30mm x 23mm (1.2 x 0.9 inch)
|
|
- On-board Micro USB connector
|
|
- 2 rows of 11 0.1" pins, with 2 extra 0.1" holes
|
|
- 21 GPIO pins : 8 Analog inputs, 20 PWM, 1 Serial, 3 SPI, 3 I2C
|
|
- Three on-board LEDs (2x user programmable, 1x WiFi activity) and one button.
|
|
- STM32F411CEU6 32-bit 100MHz ARM Cortex M4 CPU, 512kb flash, 128kb RAM
|
|
- ESP8266 WiFi (802.11 b/g/n)
|
|
- All GPIO is 5 volt tolerant (Arduino compatible)
|
|
- RTC with external oscillator
|
|
- On-board 3.3v 250mA voltage regulator, accepts voltages from 3.5v to 5v
|
|
- Current draw in sleep: < 0.05mA - over 2.5 years on a 2500mAh battery
|
|
- 500mA polyfuse on board
|
|
|
|
The Espruino's fast response time has a lot of advantages. It allows for quick and easy debugging and is a great way to test your project before your big reveal. In addition, you can control the Espruino from almost anything - Windows, Mac OS, Linux, RasPi, Android, anything that can talk to a USB Serial port.
|
|
|
|
The Espruino also interacts well with our [NeoPixels](https://www.adafruit.com/category/168). For more info, check out [Espruino's page on the WS2811 and WS2812](http://www.espruino.com/WS2811).
|
|
|
|
While the main advantage of the Espruino is its instant execution, it can also be used as a traditional board through a Web-based IDE hosted on your computer. The microcontroller also uses less power than Linux Boards (although its of course a lot less powerful as well) so will run longer on battery power, it has loads of IO pins, and it can be used as an IO board for PCs, Macs, or Rasp Pis without having to program it first. Simply take the Espruino out of its packaging and get started!
|
|
|
|
**NOTE:** The Wifi of this board is based on ESP8266 and might not work with CircuitPython. CircuitPython typically use Airlift that rely on ESP32 with better support for TLS such as this [breakout board](https://www.adafruit.com/product/4201).
|
|
|
|
## Purchase
|
|
* [Adafruit](https://www.adafruit.com/product/3514)
|