| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
|
| |
This module uses ESP8266's SPI hardware, which allows much higher
speeds. It uses a library from
https://github.com/MetalPhreak/ESP8266_SPI_Driver
|
|
|
|
|
|
| |
All functionality of the pyb module is available in other modules, like
time, machine and os. The only outstanding function, info(), is
(temporarily) moved to the esp module and the pyb module is removed.
|
|
|
|
|
|
|
|
|
| |
Most pin I/O can be done just knowing the pin number as a simple
integer, and it's more efficient this way (code size, speed) because it
doesn't require a memory lookup to get the pin id from the pin object.
If the full pin object is needed then it can be easily looked up in the
pin table.
|
| |
|
|
|
|
| |
This field is the same as phys_port and not needed.
|
|
|
|
| |
Also include py/obj.h so the header is self contained.
|
|
|
|
| |
Currently UART(0) and UART(1) are exposed and only uart.write works.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PWM implementation uses a timer and interrupts (FRC1), taken from
Espressif's/NodeMCU's implementation and adapted for our use.
8 channels are supported, on pins 0, 2, 4, 5, 12, 13, 14, 15.
Usage:
import machine
pwm0 = machine.PWM(machine.Pin(0))
pwm0.freq(1000)
pwm0.duty(500)
Frequency is shared (ie the same) for all channels. Frequency is
between 1 and 1000. Duty is between 0 and 1023.
|
|
|
|
|
| |
Supports speeds up to 500k baud, polarity=0/1, phase=0/1, and using any
pins. Only supports MSB output at the moment.
|
|
|
|
| |
Tested and working with SSD1306 I2C display.
|
|
|
|
|
| |
This is an initial attempt at making a simple C pin API for writing
things like I2C drivers in C.
|
| |
|
|
|
|
|
|
|
| |
This is the standard way of doing things, one should construct a
peripheral object (even if it's a singleton).
See issue #1330.
|
| |
|
| |
|
|
|