Bagaimana saya secara signifikan memfasilitasi pekerjaan dengan Raspberry Pi ("semuanya baru - lama terlupakan")



-Bagaimana cara memulai dengan Raspberry Pi?
- Tuang gambar ke kartu SD, sambungkan ke daya dan pergi ke toko untuk membeli semua yang hilang.


Raspberry Pi sebagai standar bukanlah hadiah. Setidaknya, jika Anda akan memberikan Pi kepada seseorang untuk Tahun Baru ini, pastikan bahwa kit keyboard-monitor-mouse, atau setidaknya adaptor USB-UART, akan tersedia untuk penerima yang beruntung.


, , -? 3 , pyLCI. , pyLCI , .


?

Pi. , .


USB-UART
      USB-UART (   3.3V)
         (FTDI,    )
(composite/HDMI)++
         (    HDMI),     220
       ,  
      -   ,   IP?
         
Ethernet
       DHCP-    Pi
      IP,     (   !)
     Ethernet-   ()
WiFi  wpa_supplicant.conf  boot 
     
      IP (!)
      (, WiFi   wlan2   ...)

//?


GUI
       VNC
         VNC   
       GUI       (Shutdown/Reboot/WiFi/IP/shell commands)
SSH+CLI
      
      
        
WEB
           
           Webmin/Ajenti/whatever

, Raspberry Pi, Linux, Python . , , Raspberry Pi — , /. WiFi - Linux , Raspberry Pi , . , , , .


, . :


  • UART Bluetooth (HC-05)
  • UART
  • SSH
  • GPIO
  • , IP

. - , , , . ?


  • . , , .
  • . — , - .
  • . , .



— (2015) , Raspberry Pi. , — — Linux LCDProc, - status monitor. , , - - , .


, , 1.0, pyLCI . — pyLCI Raspberry Pi-, , , - pyLCI. — , .


pyLCI?


pyLCI — Raspberry Pi, 2x16 , Python. , .
pyLCI — shield 5$ Pi, pyLCI Pi .



— pyLCI .


IP

/

WiFi McDonalds

WiFi



USB


(Pomodoro )

pyLCI?


  1. / Raspberry Pi - .
  2. Raspberry Pi ( , " Raspberry Pi" )
  3. Raspberry Pi ( escape-room , — )
  4. Pi ( Pi, 10 , WiFi)
  5. Pi ( / , - )

?


— :



5 , .


- ?

Adafruit:



, ( — ).


- , !


, HD44780, — 16x2, . :



GPIO ( 6 Raspberry Pi) I2C. Starter Kits, - / 2$ .


/


5 . GPIO, I2C-GPIO USB HID — numpad-:




pyLCI — UI-, UI- pyLCI. , , — - RPC- pyLCI-, UI RPC-.


Hello World:


menu_name = "Hello world"

from ui import Printer

#Callback global for pyLCI
callback = None
#Some globals for us
i = None
o = None

def init_app(input, output):
    global callback, i, o
    i = input; o = output
    callback = lambda: Printer("Hello world!", i, o)

:


  • menu_name
  • i, callbacks.
  • o, .
  • Printer. i o, .
  • init_app — , pyLCI. i o, UI- .
  • callback — , . , Printer .

UI ReadTheDocs, .



. , - , (crimier yandex ru) issues , .





Pi Zero, pyLCI SSH

Source: https://habr.com/ru/post/id400159/


All Articles