Wie ich die Arbeit mit dem Raspberry Pi erheblich erleichtert habe ("alles ist neu - alt vergessen")



-Wie fange ich mit dem Raspberry Pi an?
- Gießen Sie das Bild auf die SD-Karte, schließen Sie es an die Stromversorgung an und gehen Sie in den Laden, um alles zu kaufen, was fehlt.


Der Raspberry Pi ist standardmäßig kein Geschenk. Wenn Sie jemandem für dieses neue Jahr Pi geben möchten, stellen Sie zumindest sicher, dass dem glücklichen Empfänger ein Tastatur-Monitor-Maus-Kit oder zumindest ein USB-UART-Adapter zur Verfügung steht.


, , -? 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/de400159/


All Articles