- Add parameters to /boot/config.txt
display_rotate=1 dtoverlay=rpi-ft5406,touchscreen-swapped-x-y=1,touchscreen-inverted-x=1 - Parameters
Rotate display display_rotate=0 # normal display_rotate=1 # rotate 90° display_rotate=2 # rotate 180° display_rotate=3 # rotate 270°Touchscreen touchscreen-size-x Touchscreen X resolution, default 800 touchscreen-size-y Touchscreen Y resolution, default 600 touchscreen-inverted-x Invert touchscreen X coordinates, default 0 touchscreen-inverted-y Invert touchscreen Y coordinates, default 0 touchscreen-swapped-x-y Swap X and Y coordinates, default 0
Showing posts with label IoT. Show all posts
Showing posts with label IoT. Show all posts
2019-07-02
Rotate 7" touchscreen of Raspberry PI
2019-06-12
Serial port communication on Mac with SCREEN command
- Open Terminal or iTerm2
- See if the serial port exists
$ ls -l /dev/cu.*crw-rw-rw- 1 root wheel 20, 1 Jun 10 21:07 /dev/cu.Bluetooth-Incoming-Port crw-rw-rw- 1 root wheel 20, 3 Jun 12 18:13 /dev/cu.usbmodem1421401 - Connect to the port
$ screen -L /dev/cu.usbmodem1421401 115200-L : show log of the command from the serial port - Other commands
# in a running session
# out of sessionCtrl-A, K : kill the session Ctrl-A, D : detach from the session
$ screen -ls : list sessions There is a screen on: 9244.ttys001.Dee15S (Attached) Format : [PID].[TTYID].[HOSTNAME] $ screen -r : attach the default session $ screen -r [NAME] : attach to a session named [NAME] $ screen -S [NAME] : attach to a session named [NAME] $ screen -d [ID] : detach from the session with screen id [ID]
Subscribe to:
Posts (Atom)

