summaryrefslogtreecommitdiffstatshomepage
path: root/esp8266/modpyb.h
Commit message (Collapse)AuthorAge
* esp8266/modmachinespi: Add a factory method for SoftSPI/HSPIRadomir Dopieralski2016-08-19
|
* esp8266/modpybhspi: Add a HSPI module for hardware SPI supportRadomir Dopieralski2016-08-19
| | | | | | This module uses ESP8266's SPI hardware, which allows much higher speeds. It uses a library from https://github.com/MetalPhreak/ESP8266_SPI_Driver
* esp8266: Move pyb.info() function to esp module and remove pyb module.Damien George2016-04-28
| | | | | | 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.
* esp8266: Convert mp_hal_pin_obj_t from pin ptr to simple integer.Damien George2016-04-22
| | | | | | | | | 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.
* esp8266: Add hard IRQ callbacks for pin change on GPIO0-15.Damien George2016-04-14
|
* esp8266: Remove pin_id field from C pin object.Damien George2016-04-14
| | | | This field is the same as phys_port and not needed.
* esp8266: Protect modpyb.h header file from multiple inclusions.Damien George2016-04-12
| | | | Also include py/obj.h so the header is self contained.
* esp8266: Add initial implementation of machine.UART.Damien George2016-04-06
| | | | Currently UART(0) and UART(1) are exposed and only uart.write works.
* esp8266: Add PWM support.Damien George2016-03-26
| | | | | | | | | | | | | | | | | 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.
* esp8266: Implement software SPI class.Damien George2016-03-25
| | | | | Supports speeds up to 500k baud, polarity=0/1, phase=0/1, and using any pins. Only supports MSB output at the moment.
* esp8266: Add basic I2C driver, with init and writeto methods.Damien George2016-03-24
| | | | Tested and working with SSD1306 I2C display.
* esp8266: Expose pin object as a public structure for use as C pin API.Damien George2016-03-24
| | | | | This is an initial attempt at making a simple C pin API for writing things like I2C drivers in C.
* esp8266: Expose simple pin API at C level.Damien George2016-03-05
|
* esp8266: Make pyb.RTC a type, and pyb.RTC() constructs an RTC object.Damien George2015-06-22
| | | | | | | This is the standard way of doing things, one should construct a peripheral object (even if it's a singleton). See issue #1330.
* esp8266: Add pyb.ADC classJosef Gajdusek2015-05-28
|
* esp8266: Add utime and pyb.RTCJosef Gajdusek2015-05-13
|
* esp8266: Add basic pyb.Pin class; supports output mode only.Damien George2015-02-13