Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/irvyncornejo/hardware-lib
Librería para el control de HW para arduino y raspberry pi pico
https://github.com/irvyncornejo/hardware-lib
arduino c-plus-plus hardware iot python raspberry-pi-pico
Last synced: 7 days ago
JSON representation
Librería para el control de HW para arduino y raspberry pi pico
- Host: GitHub
- URL: https://github.com/irvyncornejo/hardware-lib
- Owner: irvyncornejo
- Created: 2022-10-25T02:26:53.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-26T23:18:47.000Z (almost 2 years ago)
- Last Synced: 2024-12-17T14:11:43.718Z (11 days ago)
- Topics: arduino, c-plus-plus, hardware, iot, python, raspberry-pi-pico
- Language: Python
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Librería para control de Hardware
![kaanbal-chimalli](https://drive.google.com/uc?export=view&id=1O7LklcChPpF3NKHRJjVY-0sa80OAXu5J)
## Arduino
* Shield para Arduino nano Kaanbal
* C++### Comprimir archivo en power shell, para después añadir desde el IDE de arduino
```
Compress-Archive .\kaanbal-lib\*.* -DestinationPath .\kaanbal.zip -F
```
### Copiar a la carpeta de libraries
```
$user="irvyn"
Copy-Item -Path "C:\Users\$user\Documents\ic\hwlib\Kaanbal" -Destination "C:\Users\$user\Documents\Arduino\libraries" -Recurse -Force
```
### Uso
```C++
#includeSingleActuator led(13);
void setup() {
}void loop() {
led.changeState(HIGH);
delay(1000);
led.changeState(LOW);
delay(1000);
}
```## Raspberry pico o pico w
* Python
GPIO control para raspberry pi pico### Input Devices
- Touch Sensor
- Potenciometer
- Joystick
- PIR
- LM35
- Nextion Display
### Ouput Devices
- LED
- Relay
- Solid state relay
- Motor DC
- RGB
- Servo motor
- NeoPixel
### Descargar paquete
```
pip install gpiopico
```
### Uso
```python
from gpiopico import Ledled1 = Led(2, True)
led1.on()
led1.change_pwm(125) #value 0-255
```