Download : https://github.com/AiDude-io/CorgiDude/releases
Please search Google for "CH340 driver"
MaixPy IDE download : https://dl.sipeed.com/MAIX/MaixPy/ide/_/
KFlash GUI : download : https://github.com/sipeed/kflash_gui/releases
All GPIO ports in CorgiDude can be controlled by Dude class
from Dude import dude, PORT
dude.BeginADC(PORT.INPUT1)
dude.BeginAHT(PORT.INPUT1)
#input
adc = dude.AnalogRead(port=PORT.INPUT1,channel=1)
temp,humid = dude.ReadAHT(port=PORT.INPUT1)
digitalData = dude.DigitalRead(port=PORT.INPUT2,pin=1)
#output
dude.PWMWrite(port=PORT.OUTPUT1,pin=2,value=50) #value 0-100
dude.DigitalWrite(port=PORT.OUTPUT1,pin=2,value=1) #value 0-1
dude.Servo(port=PORT.OUTPUT1,pin=3,value=80) #value -90 to 90 angle
dude.Motor(port=PORT.OUTPUT2,pin=1,speed=50)#speed -100 to 100
dude.LED(r=10,100,50) #onboard led 0-100 %
Note : This class occupied GPIOHS , I2C, and TIMER by this reference GPIO for ADC
- GPIOHS14 - GPIOHS16
GPIO Input
- GPIOHS21 - GPIOHS25
I2C for INPUT1
- I2C1, freq=100000, pin SCL = 15, pin SDA = 14
I2C for INPUT2
- I2C2, freq=100000, pin SCL = 10, pin SDA = 3
GPIOOutput
- GPIOHS17-GPIOHS20
Timer for PWM
- TIMER1, CHANNEL0-3 for OUTPUT1
- TIMER2, CHANNEL0-3 for OUTPUT2
Timer for RGB
- TIMER0, CHANNEL1-3
- https://maixpy.sipeed.com/en/libs/machine_vision/image.html
- https://docs.openmv.io/library/omv.image.html
- https://colab.research.google.com/drive/1K4uUOvTLzuHXmsEIBNosj46h_miCPKD0?usp=sharing
- แก้ใขhttps://colab.research.google.com/gist/apinuntong/70f930663858710346a488b8470f1c0c/corgidude-transfer-learning.ipynb
Board : https://www.aiiotshop.com/p/58