Size: 215
Comment:
|
Size: 2864
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
* Kit in https://www.chiptec.net/pcs-e-mobilidade/computadores/raspberrypi/kit-raspberry-pi-3-modelo-b-noobs-caixa-carregador-preto.html | * https://www.raspberrypi.org/ * https://en.wikipedia.org/wiki/Raspberry_Pi * Kit in https://www.chiptec.net/pcs-e-mobilidade/computadores/raspberrypi/kit-raspberry-pi-3-modelo-b-noobs-caixa-carregador-preto.html (Kit Raspberry Pi 3 Modelo B+(NOOBS+Caixa+Carregador) Preto) {{{ Processador Broadcom BCM2837B0, Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz Memória RAM 1GB LPDDR2 SDRAM Armazenamento Cartão MicroSD 32GB com NOOBS Wi-Fi e Bluetooth 2.4GHz e 5GHz IEEE 802.11.b/g/n/ac wireless LAN, Bluetooth 4.2, BLE LAN Gigabit Ethernet em USB 2.0 (saída máxima 300 Mbps) Expansão Extended 40-pin GPIO header CSI camera port DSI display port 4-pole stereo output e composite video port Portas HDMI USB 2.0 (4) Micro-SD Alimentação Entrada 5V/2.5A DC Prazo de Garantia 2 Anos }}} |
Line 4: | Line 31: |
* https://elinux.org/RPi_GPIO_Code_Samples#sysfs * https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up * https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/print == BCM2835 == * Timers * Interrupt controller * GPIO * USB * PCM / I2S * DMA controller * I2C master * I2C / SPI slave * SPI0, SPI1, SPI2 * PWM * UART0, UART1 == Install and configure screensaver and lock screen == * sudo apt-get install xscreensaver * Preferences, Screen saver * Auto lock after 2 minutes * Create new menu item (Preferences, Main menu editor) * Menu item name Lock * Command: xscreensaver-comand -lock * Icon: /usr/share/lxpanel/images/ns-lock.png == Info == {{{ $ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.4 (stretch) Release: 9.4 Codename: stretch $ uname -a Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux }}} == Install eclipse == * apt-get install eclipse-platform == Blink led port 26 == * https://www.raspberrypi.org/documentation/usage/gpio/python/README.md * https://gpiozero.readthedocs.io/en/stable/ * python drive_gpio26.py {{{#!highlight python # drive_gpio26.py from gpiozero import LED from time import sleep led = LED(26) while True: led.on() sleep(1) led.off() sleep(1) }}} == Install python 3.8.5 in raspberry py == * tar xvzf Python-3.8.5.tgz * cd Python-3.8.5/ * ./configure * make clean * make * make install * sudo make install * /usr/local/bin/python3.8 -v * /usr/local/bin/pip3.8 install cherrypy == Enable X11 forwarding == {{{#!highlight bash # Raspberry pi side sudo nano /etc/ssh/ssh_config # add line X11Forwarding yes service ssh restart # client side ssh -X userx@192.168.2.3 echo $DISPLAY leafpad & # text editor pcmanfm & # file explorer }}} |
RaspberryPi
Kit in https://www.chiptec.net/pcs-e-mobilidade/computadores/raspberrypi/kit-raspberry-pi-3-modelo-b-noobs-caixa-carregador-preto.html (Kit Raspberry Pi 3 Modelo B+(NOOBS+Caixa+Carregador) Preto)
Processador Broadcom BCM2837B0, Cortex-A53 (ARMv8) 64-bit SoC @ 1.4GHz Memória RAM 1GB LPDDR2 SDRAM Armazenamento Cartão MicroSD 32GB com NOOBS Wi-Fi e Bluetooth 2.4GHz e 5GHz IEEE 802.11.b/g/n/ac wireless LAN, Bluetooth 4.2, BLE LAN Gigabit Ethernet em USB 2.0 (saída máxima 300 Mbps) Expansão Extended 40-pin GPIO header CSI camera port DSI display port 4-pole stereo output e composite video port Portas HDMI USB 2.0 (4) Micro-SD Alimentação Entrada 5V/2.5A DC Prazo de Garantia 2 Anos
Access GPIO https://elinux.org/RPi_GPIO_Code_Samples#C
https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up
https://projects.raspberrypi.org/en/projects/raspberry-pi-setting-up/print
BCM2835
- Timers
- Interrupt controller
- GPIO
- USB
- PCM / I2S
- DMA controller
- I2C master
- I2C / SPI slave
- SPI0, SPI1, SPI2
- PWM
- UART0, UART1
Install and configure screensaver and lock screen
- sudo apt-get install xscreensaver
- Preferences, Screen saver
- Auto lock after 2 minutes
- Create new menu item (Preferences, Main menu editor)
- Menu item name Lock
- Command: xscreensaver-comand -lock
- Icon: /usr/share/lxpanel/images/ns-lock.png
Info
$ lsb_release -a No LSB modules are available. Distributor ID: Raspbian Description: Raspbian GNU/Linux 9.4 (stretch) Release: 9.4 Codename: stretch $ uname -a Linux raspberrypi 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l GNU/Linux
Install eclipse
- apt-get install eclipse-platform
Blink led port 26
https://www.raspberrypi.org/documentation/usage/gpio/python/README.md
- python drive_gpio26.py
Install python 3.8.5 in raspberry py
- tar xvzf Python-3.8.5.tgz
- cd Python-3.8.5/
- ./configure
- make clean
- make
- make install
- sudo make install
- /usr/local/bin/python3.8 -v
- /usr/local/bin/pip3.8 install cherrypy