CJMCU cp2112 GPIO pins

procedures, notes, reminders
Post Reply
comarius
Posts: 14
Joined: Thu Nov 07, 2019 3:32 am

CJMCU cp2112 GPIO pins

Post by comarius » Sun Mar 22, 2020 10:19 pm

CJMCU cp2112 GPIO's numbers

There are 3 GPIO pins so far I05 I06 I07 as gpio 357 358 and 359.

Code: Select all

echo 357 > /sys/class/gpio/export
echo 358 > /sys/class/gpio/export
echo 359 > /sys/class/gpio/export

echo "out" > /sys/class/gpio/gpio357/direction
echo "out" > /sys/class/gpio/gpio358/direction
echo "in" > /sys/class/gpio/gpio359/direction

echo "1" > /sys/class/gpio/gpio357/value
echo "1" > /sys/class/gpio/gpio358/value
cat /sys/class/gpio/gpio359/value

Image

The i2c

Code: Select all

i2c-0	i2c       	CP2112 SMBus Bridge on hidraw2  	I2C adapter

Code: Select all

[  693.856959] usb 1-2: new full-speed USB device number 7 using xhci_hcd
[  694.006638] usb 1-2: New USB device found, idVendor=10c4, idProduct=ea90, bcdDevice= 0.00
[  694.006646] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  694.006650] usb 1-2: Product: CP2112 HID USB-to-SMBus Bridge
[  694.006654] usb 1-2: Manufacturer: Silicon Laboratories
[  694.006658] usb 1-2: SerialNumber: 00423B5B
[  694.011737] cp2112 0003:10C4:EA90.0008: hidraw2: USB HID v1.01 Device [Silicon Laboratories CP2112 HID USB-to-SMBus Bridge] on usb-0000:00:14.0-2/input0
[  694.069183] cp2112 0003:10C4:EA90.0008: Part Number: 0x0C Device Version: 0x0


Post Reply