Skip to menu

Robotics with Object Pascal

Rover

Circuit Python 실험.

2023.09.25 12:19

me Views:186

// 깃헙 위치 https://github.com/adafruit/Adafruit_Blinka/tree/main

 

// 반드시 깃헙에서 다운받아서 설치할 것

https://learn.adafruit.com/adding-a-single-board-computer-to-blinka/getting-gpio-working

 

// Trying Circuit Python
apt-get install python3-pip
apt-get install libgpiod2 python3-libgpiod
pip3 install gpiod
pip3 install adafruit-blinka  # 반드시 깃헙에서 다운받아서 설치할 것

 

========================

// 먼저 onange-config에서 핀 세팅을 하고,

// TEST.PY

import board
import digitalio
import busio

print("Hello blinka!")

# Try to great a Digital input
pin = digitalio.DigitalInOut(board.PA6)
print("Digital IO ok!")

# Try to create an I2C device
i2c = busio.I2C(board.SCL, board.SDA)
print("I2C ok!")

# Try to create an SPI device
spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
print("SPI ok!")

print("done!")

=======================

 

( Orange Pi 계열 준비된 보드들 )

 

Adafruit_Blinka_Support_02.png

 

Adafruit_Blinka_Support_01.png