Skip to content

Librería para el control de HW para arduino y raspberry pi pico

Notifications You must be signed in to change notification settings

irvyncornejo/hardware-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Librería para control de Hardware

kaanbal-chimalli

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

#include <Kaanbal.h>

SingleActuator 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

from gpiopico import Led

led1 = Led(2, True)
led1.on()
led1.change_pwm(125) #value 0-255