# Get the docker image from the whale cloud
docker pull radioml/full
docker run -p 9999:9999 -i -t radioml/full /bin/bash
root@42e3130e2fa9:/home/x2go# jupyter notebook --ip=0.0.0.0 --port=9999
Power Pins 5V – this is the 5V power from the USB input. GND – this is the common ground for all power and logic. 3V power output – The new version has a 3.3V power output pin for up to 500mA GPIO Pins D4 to D7 – can be used as either digital inputs or outputs. C0 to C7 – can be used as either digital inputs or outputs. I2C Pins SCL – the I2C clock signal is on D0. SDA – the I2C data is on D1+D2. I2C switch – The new version has a switch that connects D1 and D2 for easy I2C interfacing. Move the switch to ON to use I2C and/or the STEMMA QT connector. You can then use either D1 or D2 for SDA. On the original version only: Note that there are two pins (D1 and D2) which must be tied together and treated as one to use I2C.
SPI Pins SCLK – the SPI clock signal is on D0. MOSI – Microcontroller Out, Serial In is on D1. MISO – Microcontroller In, Serial Out is on D2. CS0 – Chip Select is on D3. This is not used by Blinka, instead use one of the GPIO pins from above (see example section).
ST7789ピン FT232Hピン 説明
VCC 3.3V 電源(3.3V推奨、5Vは不可の場合あり)
GND GND グランド
SCL D0 (SCLK)
SPIクロック信号 SDA D1 (MOSI) SPIデータ入力(Master Out Slave In)
RES D5 リセットピン
DC D6 データ/コマンド選択ピン
BLK 3.3VまたはD7 バックライト(オプション、3.3VまたはGPIOで制御)
CircuitPython Libraries on any Computer with FT232H
I2Cサンプル # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT
import time
import board
from adafruit_bme280 import basic as adafruit_bme280
# Create sensor object, using the board’s default I2C bus. i2c = board.I2C() # uses board.SCL and board.SDA # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller bme280 = adafruit_bme280.Adafruit_BME280_I2C(i2c)
# OR create sensor object, using the board’s default SPI bus. # import digitalio # spi = board.SPI() # bme_cs = digitalio.DigitalInOut(board.D10) # bme280 = adafruit_bme280.Adafruit_BME280_SPI(spi, bme_cs)
# change this to match the location’s pressure (hPa) at sea level bme280.sea_level_pressure = 1013.25