MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 12 as of 2020-03-07 23:50:32
  • RaspberryPi

RaspberryPi

  • 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

  • Access GPIO https://elinux.org/RPi_GPIO_Code_Samples#C

  • https://elinux.org/RPi_GPIO_Code_Samples#sysfs

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

   1 # drive_gpio26.py
   2 from gpiozero import LED
   3 from time import sleep
   4 
   5 led = LED(26)
   6 
   7 while True:
   8     led.on()
   9     sleep(1)
  10     led.off()
  11     sleep(1)
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01