Commit Graph

44 Commits

Author SHA1 Message Date
Danilo Cadeddu 578522dfcf Fix unused import 2022-08-22 07:41:32 +02:00
Danilo Cadeddu 9155999570 Fix typo in file description 2022-08-21 17:15:28 +02:00
DenzelChen 62d0ba805e Update I2CLCD1602.py 2021-12-22 09:08:33 +08:00
DenzelChen 1cad616181 Update code for motor 2021-01-11 16:28:50 +08:00
DenzelChen c9dd54ff5a Update tutorial 2020-12-23 08:52:18 +08:00
Suhayl 23c3ae3508 Merge pull request #28 from egoistka/pwm-stop
Add p.stop() for PWM pin for cleanup
2020-12-12 16:38:19 +08:00
egoistka b3352ebda9 - Fix typo OFFSE_DUTY -> OFFSET_DUTY
- Introduce constant SERVO_DELAY_SEC for servo sleep before changing the angle
- inline map() function for converting angle to duty cycle as the current one is generic and a bit hard to follow
2020-11-23 18:17:07 +00:00
egoistka 120f274277 Add p.stop() for PWM pin for cleanup 2020-11-23 17:40:59 +00:00
DenzelChen 728cddc0df Add ADCDevice.py 2020-11-23 17:47:21 +08:00
Suhayl 3d71851846 update dht.
Optimize DHT11 code
2020-10-16 17:56:30 +08:00
DenzelChen 62eac3575f Update tutorial and RGB LCD code 2020-07-30 14:12:36 +08:00
Suhayl 56147c03d9 update.
add GPIO.cleanup().
2020-05-28 16:46:00 +08:00
Romain Ariza 9e786108f9 Enforce a 2 digits time for hour, min and sec 2020-05-27 23:23:18 +10:00
Suhayl a2ac6a4988 Update ADC module.
update adc module ,add ads7830.
2020-03-11 16:06:06 +08:00
Suhayl 01075b8d39 rm files 2020-02-25 09:33:26 +08:00
Suhayl d2af7f1c09 change case
Change the case of "Tablelamp.c".
2020-02-25 09:23:41 +08:00
Suhayl 68793bed42 Replace tab with space
Replace all tab with space, to adapt to different editors.
2020-01-13 11:23:16 +08:00
Suhayl ccab0ff9ff Update
Fixed bug.
2019-12-28 18:41:46 +08:00
Suhayl e6f7b47104 Update.
Fixed bug.
2019-12-28 18:06:08 +08:00
Suhayl c9cfe0fcd3 New Release.
Extensive updates.
Optimize code and comments.
2019-12-28 15:21:48 +08:00
Luis Pineda b302b34ded Fix filename and description 2019-12-09 16:54:46 -05:00
Suhayl cf72fae877 include stdlib.h
add include stdlib.h, for function random.
2019-07-06 10:41:18 +08:00
Suhayl 2f978e2955 Use software pwm.
Add support for Pi4B.
2019-07-06 10:37:25 +08:00
Suhayl 5a81edf724 Add file Softlight.py
Add file Softlight.py
2019-06-27 10:01:28 +08:00
Suhayl 8d31394cae remove file.
remove file. rename.
2019-06-27 09:59:54 +08:00
Suhayl f1f33177ed rename Softlight.py.
Rename file SoftLight.py to Softlight.py
2019-06-27 09:45:03 +08:00
Suhayl e951297ff1 Optimized code.
Optimized code. Remove some redundant code.
2019-04-11 11:16:42 +08:00
Suhayl d7eb0f0765 Adding support for Pi 3A+.
Adding support for Pi 3A+ and some description of PCF8591.
2018-12-22 10:34:38 +08:00
Suhayl f791ccdaaa Update.
Deleted some useless information in Joystick code.
2018-11-10 09:44:11 +08:00
Suhayl 7fb06826cd Modified relay code.
Modified the Python code of relay , compatible with python2 and python3.
2018-09-27 10:38:57 +08:00
Suhayl 8dfa1647a9 Modify relay .
Modify the relay project , schematic and python code.
2018-09-26 18:43:54 +08:00
Suhayl 9dee7acb2f rename folder.
rename UltrasonicRanging folder.
2018-08-09 11:43:42 +08:00
Suhayl 19a087895c Override function ShiftOut in C code.
The shiftout function in wiringPi does not communicate with 595
properly, which causes LightWater02, SevenSegment, StopWatch, and LED
Matrix to fail. So the function is to be override.
2018-08-07 10:28:56 +08:00
Suhayl dc5fe9a90f Support Python3.
Add supporting Python3 , while supporting Python2.7 .
2018-08-03 17:24:29 +08:00
Suhayl e902e7f76d Revert "Support Python3."
This reverts commit e13967110a.
2018-08-03 16:12:35 +08:00
Suhayl e13967110a Support Python3.
Increase support for python3, while supporting Python2.7 .
2018-08-03 16:08:22 +08:00
Suhayl 3ac92b9442 Update the C code of the 4-digital-display
After the system is updated, in the ShiftOut function, the IO port pin
changes too fast, resulting in communication abnormality with 74HC595.
In the update, the SHIFT function is override.
2018-07-16 09:01:47 +08:00
Suhayl 9afdd9a547 Modify the Joystick code
Modified to the correct ADC input pin
2018-07-11 14:07:34 +08:00
Suhayl c399737b41 update DHT11 program
The DHT manufacturer updates the firmware, so we also need to update the
program
2018-03-07 16:52:07 +08:00
Suhayl e658b7d1fd Optimize I2C LCD1602
Adapt for pcf8574A.
2017-04-18 14:12:38 +08:00
Suhaylzhao 6e6a80a5e6 Modify some code comments
In file "SenseLED.c"
2016-09-03 21:23:08 +08:00
Suhaylzhao 5a616281b0 Fix some non-ASCII character
Mistakes when translated comment from Chinese into English
2016-09-01 17:59:27 +08:00
Suhaylzhao 8cc98729a1 fix some non-ASCII character
In the file "PCF8591.py"
2016-08-20 21:53:04 +08:00
Suhaylzhao a5883f0402 First publish
Apply to FNK0020
2016-08-19 11:54:07 +08:00