Comment j'ai considérablement facilité le travail avec le Raspberry Pi ("tout est nouveau - vieux bien oublié")



-Comment commencer avec le Raspberry Pi?
- Versez l'image sur la carte SD, connectez-la à l'alimentation et allez au magasin pour acheter tout ce qui manque.


Le Raspberry Pi en standard n'est pas un cadeau. Au moins, si vous allez donner Pi à quelqu'un pour cette nouvelle année, assurez-vous que le clavier, le moniteur, la souris ou au moins un adaptateur USB-UART seront disponibles pour l'heureux destinataire.


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


All Articles