Menü
Microbots
0
  • Machen
    • Erste Schritte
    • Maker-Builds
    • Ausbildung
  • Geschäft
    • ProtoBot
    • Maker-Module
    • Werkzeuge und Ausrüstung
    • Roboter & Displays
  • Um
    • Unsere Geschichte
    • Kontakt
    • FAQs
  • Einloggen
  • Deutsch
  • Ihr Warenkorb ist leer
Microbots
  • Machen
    • Erste Schritte
    • Maker-Builds
    • Ausbildung
  • Geschäft
    • ProtoBot
    • Maker-Module
    • Werkzeuge und Ausrüstung
    • Roboter & Displays
  • Um
    • Unsere Geschichte
    • Kontakt
    • FAQs
  • Sprache

  • 0 0

CodeCell: Richten Sie in Sekundenschnelle einen GPIO ein

Das CodeCell-Modul macht die Arbeit mit GPIO-Pins (Ein-/Ausgabe) so einfach wie nie zuvor. Während Sie weiterhin die traditionellen Arduino-Funktionen digitalWrite() und digitalRead() verwenden können, nutzt die CodeCell-Bibliothek die Funktionen pinWrite() und pinRead() , die die Pin-Initialisierung automatisch für Sie übernehmen.

Keine Pin-Initialisierung

Mit den optimierten Funktionen von CodeCell müssen Sie den Pin-Modus nicht manuell mit pinMode() einstellen. Rufen Sie einfach auf:

 myCodeCell.pinWrite(uint8_t pin_num, bool pin_value);

So schalten Sie beispielsweise eine an Pin 5 angeschlossene LED ein:

 myCodeCell.pinWrite(5, HIGH);

Oder schalten Sie es aus:

myCodeCell.pinWrite(5, LOW);

Lesen der GPIO-Zustände

Das Auslesen eines Pin-Status ist genauso einfach:

 if (myCodeCell.pinRead(5)) {
 // Pin is HIGH, do something
 }

Die Funktion pinRead() gibt einen Booleschen Wert zurück ( true für HIGH, false für LOW), wodurch GPIO-Interaktionen mühelos erfolgen.

Warum diese Funktionen verwenden?

  • pinMode() ist nicht erforderlich – es wird automatisch gehandhabt, wodurch Ihre Skizzen übersichtlicher werden.

  • Integrierte Fehlererkennung – wenn ein Pin auf Ihrem CodeCell-Modul nicht verfügbar ist, wird auf dem seriellen Monitor ein Fehler ausgegeben, der Ihnen bei der Fehlerbehebung hilft.

Diese Funktionen machen die GPIO-Verwaltung von CodeCell intuitiver – egal, ob Sie LEDs, Tasten und mehr steuern!

  • Teilen:

Sozial

Github

  • Um
  • Software
  • Ausbildung
  • Kontakt
  • FAQs
  • Bedingungen
  • Rückerstattung-Politik
  • Datenschutzrichtlinie

Erfahren Sie als Erster von neuen Projekten und sichern Sie sich spannende Angebote!

© 2026 Microbots.

★ Reviews

Let customers speak for us

67 reviews
Write a review
85%
(57)
6%
(4)
1%
(1)
3%
(2)
4%
(3)
62
21
C
CodeCell C3
Cloke74

Great piece of kit, had just what i needed to complete the project i had in mind. Shame shipping to the UK is so expensive, but appreciate this isn’t necessarily in the hands of MicroBots

A
CodeCell C6
Anonymous

I had an issue, got a red light, I used too much flux. Support said clean it, then the one sensor worked fine. I got the help and answer same day I provided a foto.

A
CodeCell C6 Drive
Anonymous

I think this is the best of the ESP offered, most versatile.

User picture
P
CodeCell C6
Prudhvi tej Chinimilli

Been testing the Microbots CodeCell C6 and honestly impressed with how much functionality they packed into such a tiny module. Great form factor for rapid prototyping wearable/embedded sensing applications. ESP32-C6 + IMU integration makes development much easier compared to building everything from scratch.

Still exploring battery optimization and compact LiPo options for our use case, but overall the platform is promising for low-cost real-time sensing systems. Excited to keep building with it.

F
CodeCell C6
Francisco Estivallet

Amazing hardware, my go to for compact projects.

User picture
123