Notem esp8266 32m ports in IDE ansprechen

brauche mehr ports, wie kann ich CLK und SD0 in IDE ansprechen?
Möchte ein LED TM1637 dort betreiben!?

Suche nach Port Expander
(...und finde z.B. MCP23017)

(...oder Suche nach LED TM1637 Modul und brauche kein Port Expander.
...deine Frage ist zu unspezifisch. Man kann es kompliziert machen, wie du es scheinbar vor hast. Oder man macht es sich einfach und nutzt existierende Technik)

Die Frage lautet: Welches Ziel willst du erreichen?

die werden "intern" genutzt, da handelst dir nur Probleme ein, wenn du die beschaltest.

Welchen ESP hast genau (Pinout verlinken!) ?
Was hast du an sonstiger Hardware an deinen Pins hängen? schon irgendwas mit I2C oder SPI?
wenn I2C nimm statt dem TM1637 einen HT16K33, wenn SPI, einen MAX7219

Hier ein Beispiel
https://create.arduino.cc/projecthub/ryanchan/tm1637-digit-display-arduino-quick-tutorial-ca8a93
Ausprobieren Lernen weiter machen :wink:
Ist für Uno also Pins anpassen.

Hallo Community...
Sorry wenn ich mich nicht so klar ausgedrückt habe.
Das TM1637 läuft bei mir ohne Probleme an den (Linken Ports D0-D8). Die möchte ich aber mit anderen Aufgaben benutzen. Deshalb soll das Display an den ii2 Bus (CLK , SD0). Aber ich weiß nicht wie ich die Ansprechen soll! Mit der Bezeichnung CLK , SD0 gibt es Fehlermeldung
#include "TM1637.h"
//pins definitions for TM1637 and can be changed to other ports
#define CLK CLK
#define DIO SD0
TM1637 tm1637(CLK,DIO);
error: 'CLK' was not declared
Wie werden diese Ports angesprochen??
Tks

was war daran unverständlich?

Diese Pins nutzt der controller für den Speicherzugriff.

Wie @noiasca schreibt geht nicht, und für programmieren werden GPIO Pinnummern benutzt und nicht Bezeichnung
zB. SCL für I2C hat die Nr. 5 usw.
Wen du glück hast könnte mit GPIO9 und GPIO10 funktionieren je nach dem was für Speicher IC verbaut ist.

@kronef Probier mal folgendes:

#include "TM1637.h"
//pins definitions for TM1637 and can be changed to other ports
const byte CLK {15};
const byte DIO {13};
TM1637 tm1637(CLK,DIO);

In diesem Beispiel wird GPIO15 (D8) für CLK und GPIO13 (D7) für DIO verwendet.

Er schreib doch das die "linke" Seite hat Er belegt (Linke Seite = #1)

Da hast Du recht. Das habe ich "überlesen". Bleiben rechts wahrscheinlich nur die GPIOS 9 und 10.
Die werden beim Booten zwar auf HIGH gezogen, da die Initialisierung des LED-Displays aber nach dem booten erfolgt, könnte das klappen.

also @kronef:
const byte CLK {9};
const byte DIO {10};

Ich weiß nicht ob es klappt, aber Versuch mach klug.

Und wenn nicht bleibt nur ESP32 zu Auswahl

Bei einem funktioniert mit GPIO 9, 10 aber der hat nur 1MiB Flash, Bei dem mit 4MiB nicht.
Gehe davon aus das dass mit Flash zusammenhängt.

GPIO9 und GPIO10 stehen nur im DualMode zur Verfügung. Im QuadMode werden diese vom FlashSPI genutzt.

https://docs.espressif.com/projects/esptool/en/latest/esp8266/advanced-topics/spi-flash-modes.html

Und das habe ich auch dazu gefunden:

You have to look how the internal wiring of the ESP8266 chip with the flash-memory is done.
On most boards the flashmemory, a 8 pin chip, is connected to 6 GPIO pins and Vcc+Gnd.
4 of these pins, GPIO 6,7,8,& 11 are the equivalent of the SPI-bus & ChipSelect and are absolutely nessecary for communucation with the flash chip. 2 extra pins GPIO9 and GPIO 10 are used on special functions-pins of the flash chip. GPIO9 is connected to the HOLD pin and GPIO10 is connected to the WP (WriteProtect) pin of the flash chip. Both these pins are 'HIGH' when the flash chip is in normal mode. To program the flash chip WP GPIO10 is made 'LOW'.
It is possible to disconnect the HOLD and WP pin of the flash chip from the ESP and connect them both to VCC. If you do that you free GPIO9 & 10 and make them usable as general I/O. Only when (re)flashing the chip (Serial or OTA) GPIO9 & 10 pins need to be connected to the ESP again.
There are actually some development boards that do this automaticcally. For the NodeMCU board there are/were plans to do that too but it is not (yet) implemented.
Practically spoken GPIO 6,7,8,9,10 & 11 are dedicated to the flash memory and not usable for other purposes.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.