kopia lustrzana https://github.com/GuyCarver/MicroPython
Update documentation.
rodzic
d3f3a1459a
commit
23377cae03
33
README.md
33
README.md
|
@ -2,4 +2,35 @@
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
* ST7735 - Sainsmart LCD display driver.
|
###lib directory
|
||||||
|
|
||||||
|
* apds9960 - Proximity/Motion/Color sensor using I2C interface. Gesture reporting is not yet complete.
|
||||||
|
* jcmcu - Temperature sensor using mlx90614 with a serial interface.
|
||||||
|
* ds3231 - Battery backup clock with I2C interface. Ties data from ds3231 with pyb.RTC.
|
||||||
|
* esp8266 - Interface PyBoard with an esp8266 as an external wifi interface with serial connection. Connection can be a bit flaky.
|
||||||
|
* gy521 - Driver for gy-521 accelerometer using I2C communication.
|
||||||
|
* irdistance - Driver for Sharp gp2y0a IR distance sensor using ADC pin.
|
||||||
|
* joystick - Hilitchi 2pcs Arduino compatible Biaxial Button Joystick Sensor Module.
|
||||||
|
* jymcu - Driver for JY-MCU Bluetooth board using serial connection.
|
||||||
|
* l298n - Driver for L298N Dual HBridge Motor Controller.
|
||||||
|
* mlx90614 - Driver for IR temperature sensor using I2C communication. NOTE: Mine don't work on PyBoard but do on ESP32 and ESP8266. I suspect the pull up resistors on my mlx90614 breakout are the cause. A raw mlx90614 would probably work.
|
||||||
|
* oled - Driver for diymall 9.6 oled display using I2C communication. NOTE: While this works I implemented this in C and included it in the MicroPython OS to improve performance.
|
||||||
|
* pca9865 - Driver for pca9865 16 servo controller using I2C communication.
|
||||||
|
* pir - Driver for passive infrared motion detector.
|
||||||
|
* pwm - wrapper for easier pwm use.
|
||||||
|
* relay - Driver for my relay board.
|
||||||
|
* seriffont, sysfont and terminalfont - Fonts used by ST7735 and oled. NOTE: My C implementations of those drivers use a default petme128_8x8 font included in the OS.
|
||||||
|
* sr04distance - Driver for the SR04 sonic distance sensor.
|
||||||
|
* ST7735 - Sainsmart LCD display driver. While this works, I implemented this in C and included in the MicroPython OS to improve performance.
|
||||||
|
* tm1637 - Driver for the tm1637 quad 7-segment LED display.
|
||||||
|
|
||||||
|
##ESP32
|
||||||
|
* modules used on ESP32 running MicroPython.
|
||||||
|
|
||||||
|
##ESP8266
|
||||||
|
* modules used on ESP8266 running MicroPython.
|
||||||
|
|
||||||
|
##root directory
|
||||||
|
* bombs - render test for ST7735
|
||||||
|
* motion - PIR sensor interupt test to display a message on motion detection.
|
||||||
|
* tft - Tests for ST7735
|
||||||
|
|
|
@ -10,7 +10,10 @@ class motor( ):
|
||||||
"""forward pin name, backward pin name, speed = (pin name, timer#)
|
"""forward pin name, backward pin name, speed = (pin name, timer#)
|
||||||
Need to make sure the given timer # is associated with the speed
|
Need to make sure the given timer # is associated with the speed
|
||||||
pin or an exception will be raised. The speed pin must support
|
pin or an exception will be raised. The speed pin must support
|
||||||
PWM."""
|
PWM.
|
||||||
|
#Examples:
|
||||||
|
m1 = motor('Y1', 'Y2', ('Y3', 4))
|
||||||
|
m2 = motor('Y5', 'Y6', ('Y4', 4)) """
|
||||||
self._forward = Pin(forward, Pin.OUT_PP)
|
self._forward = Pin(forward, Pin.OUT_PP)
|
||||||
self._backward = Pin(backward, Pin.OUT_PP)
|
self._backward = Pin(backward, Pin.OUT_PP)
|
||||||
self._speedControl = PWM(speed[0], speed[1])
|
self._speedControl = PWM(speed[0], speed[1])
|
||||||
|
|
Ładowanie…
Reference in New Issue