|
|
| (66 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) |
| Zeile 1: |
Zeile 1: |
| =Spezifikationen=
| | *[[Raspberry Pico ausführlich]] |
| *RP2040 Mikrocontroller-Chip
| | *[[Raspberry Pico reset]] |
| *Dual-Core-Arm Cortex M0+ Prozessor, flexibler Takt mit bis zu 133 MHz
| | *[[Raspberry Pico schnell]] |
| *264 KB SRAM und 2 MB integrierter Flash-Speicher
| |
| *Direktes Löten auf der Platine möglich
| |
| *USB 1.1 mit Geräte- und Hostunterstützung
| |
| *Energiesparmodus und Ruhezustand
| |
| *Drag-and-Drop-Programmierung über USB
| |
| *26 GPIO-Pins (3.3V) | |
| *2 × SPI, 2 × I2C, 2 × UART, 3 × 12-Bit-ADC, 16 × steuerbare PWM-Kanäle
| |
| *RTC und Timer auf dem Chip
| |
| *Temperatursensor
| |
| *Gleitkomma-Bibliotheken auf dem Chip
| |
| *8 × Programmierbare I/O State Machines (PIO) für benutzerdefinierte Peripherieunterstützung
| |
| =Adafruit Install=
| |
| *https://circuitpython.org/board/raspberry_pi_pico/
| |
| *https://downloads.circuitpython.org/bin/raspberry_pi_pico/de_DE/adafruit-circuitpython-raspberry_pi_pico-de_DE-7.0.0.uf2
| |
| =Copy File=
| |
| *cp ~/Download/adafruit-circuitpython-raspberry_pi_pico-de_DE-7.0.0.uf2 | |
| Nach ein paar Sekunden wird eine "USB-Stick" mit dem Namen "CIRCUITPY" gemountet
| |
| =Script=
| |
| | |
| ==File Mount==
| |
| <code>import digitalio
| |
| import storage
| |
| from board import *
| |
| | |
| class DEBUG_MOUNT():
| |
|
| |
| noStorageStatus = False
| |
| noStoragePin = digitalio.DigitalInOut(GP15)
| |
| noStoragePin.switch_to_input(pull=digitalio.Pull.UP)
| |
| noStorageStatus = not noStoragePin.value
| |
|
| |
| def mount(self):
| |
|
| |
| if(self.noStorageStatus == True):
| |
| # don't show USB drive to host PC
| |
| try:
| |
| storage.disable_usb_drive()
| |
| except:
| |
| print("USB drive disabled")
| |
|
| |
| return "disabled"
| |
|
| |
| else:
| |
| # normal boot
| |
| print("USB drive enabled")
| |
|
| |
| return "enabled"
| |
| </code>
| |