L'ho vista la discussione ma non l'ho seguita, tendo ad evitare le discussioni che crescono a più di un paio di pagine al giorno ![]()
lesto:
L'ho vista la discussione ma non l'ho seguita, tendo ad evitare le discussioni che crescono a più di un paio di pagine al giorno
Beh, non è che ogni Topic che cresce sia uno SPAM BAR
C'è stato un timido tentativo, subito stroncato, il resto è abbastanza interessante come discorso; chiaro che se ti perdi Topic di quella portata ti perdi anche i risultati,come in questo caso ![]()
Che bug è questo, scusa? Siccome uso i Tiny, mi interessa smiley-lol
Dai un'occhiata qui e vedi che la memoria ti torna subito ![]()
http://arduino.cc/forum/index.php/topic,96135.0.html
Mi scoccio sistemare tutte le piccole imperfezioni ad ogni uscita dell'IDE. Per il momento non mi muovo dalla 1.0, ce l'ho "a puntino" e fa ciò che deve.
@dalubar:
figurati, non mi ricordavo neanche di essere intervenuto in quella discussione ![]()
@mike:
ricordati che, come me, lesto ha Linux per cui tutte le vostre modifiche, che riguardano Windows, non sono direttamente applicabili.
@lesto:
anche tu usi le versioni xxx-atmel presenti in AUR della toolchain? Io uso quelle e, dopo qualche piccola modifica, mi va abbastanza bene.
AUR? nono, mi pare di usare la avr-gcc nel ramo delle release ufficiali. Non a caso ogni 3x2 ho problemi ![]()
x iscrizione
Col nuovo IDE è stata aggiunta la possibilità di attivare le resistenze di pull-up direttamente dalla definizione del pin.
Se il pin è definito come INPUT la pull-up non verrà attivata, mentre verrà attivata con INPUT_PULLUP
- Added INPUT_PULLUP option for pinMode(). The INPUT mode now explicitly
disables the pullup resistors. (Paul Stoffregen)
Google Code Archive - Long-term storage for Google Code Project Hosting.
E' stato modificato anche il Reference relativo a questa funzione.
--> pinMode() - Arduino Reference
--> http://arduino.cc/en/Reference/Constants
Defining Digital Pins, INPUT, INPUT_PULLUP, and OUTPUT
Digital pins can be used as INPUT, INPUT_PULLUP, or OUTPUT. Changing a pin with pinMode() changes the electrical behavior of the pin.Pins Configured as INPUT
Arduino (Atmega) pins configured as INPUT with pinMode() are said to be in a high-impedance state. Pins configured as INPUT make extremely small demands on the circuit that they are sampling, equivalent to a series resistor of 100 Megohms in front of the pin. This makes them useful for reading a sensor, but not powering an LED.
If you have your pin configured as an INPUT, you will want the pin to have a reference to ground, often accomplished with a pull-down resistor (a resistor going to ground) as described in the Digital Read Serial tutorial.Pins Configured as INPUT_PULLUP
The Atmega chip on the Arduino has internal pull-up resistors (resistors that connect to power internally) that you can access. If you prefer to use these instead of external pull-down resistors, you can use the INPUT_PULLUP argument in pinMode(). This effectively inverts the behavior, where HIGH means the sensor is off, and LOW means the sensor is on. See the Digital Input Pullup? tutorial for an example of this in use.Pins Configured as Outputs
Pins configured as OUTPUT with pinMode() are said to be in a low-impedance state. This means that they can provide a substantial amount of current to other circuits. Atmega pins can source (provide positive current) or sink (provide negative current) up to 40 mA (milliamps) of current to other devices/circuits. This makes them useful for powering LED's but useless for reading sensors. Pins configured as outputs can also be damaged or destroyed if short circuited to either ground or 5 volt power rails. The amount of current provided by an Atmega pin is also not enough to power most relays or motors, and some interface circuitry will be required.
leo72:
@mike:
ricordati che, come me, lesto ha Linux per cui tutte le vostre modifiche, che riguardano Windows, non sono direttamente applicabili.
Ma io mi riferivo all'ISP2, che penso possa usare anche lui, no?
a PaoloP: comoda questa cosa dell'INPUT_PULLUP, anche molto intuitiva ![]()
Sì, ma era stata tirato fuori la questione delle modifiche alla toolchain, io mi agganciavo a quel discorso.
a PaoloP: comoda questa cosa dell'INPUT_PULLUP, anche molto intuitiva
Sperando che tutti questi fronzoli non appesantiscano troppo il codice.
leo72:
Sperando che tutti questi fronzoli non appesantiscano troppo il codice.
SO: Ubuntu 10.04
Sketch BlinkWithoutDelay:
IDE 0022 e toolchain del sistema: 970 byte
IDE 1.0.1 e toolchain dell'IDE: 1028 byte
Sketch "Strings/CharacterAnalysis":
IDE 0022: 2904 byte
IDE 1.0.1: 3294 byte
Sketch "Communication/ASCIITable":
IDE 0022: 2220 byte
IDE 1.0.1: 2600 byte
Quindi vanno rivisti tutti i tutorial sui pulsanti e relativi codici...
Federico:
Quindi vanno rivisti tutti i tutorial sui pulsanti e relativi codici...
Nei pulsanti io metto le pull-down. ![]()
Se vuoi mettere le pull-up puoi usare il nuovo metodo oppure il vecchio "digitalwrite(pin,HIGH)" che funziona ugualmente. Infatti di base le pull-up interne sono disattivate.
L'hanno fatto perché una scrittura in un pin settato in ingresso era poco intuitiva.
leo72:
leo72:
Sperando che tutti questi fronzoli non appesantiscano troppo il codice.SO: Ubuntu 10.04
Sketch BlinkWithoutDelay:
IDE 0022 e toolchain del sistema: 970 byteIDE 1.0.1 e toolchain dell'IDE: 1028 byte
Sketch "Strings/CharacterAnalysis":
IDE 0022: 2904 byte
IDE 1.0.1: 3294 byteSketch "Communication/ASCIITable":
IDE 0022: 2220 byte
IDE 1.0.1: 2600 byte
Ottimo, non appesantisce troppo il codice ![]()
Ma tu hai fatto un confronto addirittura tra 0.22 e 1.0.1 non influiscono solo i fronzoli di cui parlavamo
Ci vorrebbe un confronto tra la 1.0 e la 1.0.1.
Stasera torno a casa e faccio qualche prova.
Una cosa che ho notato dalla 1.0.1rc2 è la velocità di compilazione... e infatti:
- Compilation has been speeded up by only compiling changed files. (All files are recompiled when a new board is selected.) (Paul Stoffregen)
Google Code Archive - Long-term storage for Google Code Project Hosting.
![]()
Se si cambia una virgola viene ricompilato solo lo sketch e non tutte le librerie e file allegati.
PaoloP:
Se si cambia una virgola viene ricompilato solo lo sketch e non tutte le librerie e file allegati.
Sinceramente io su Linux non ho mai avuto problemi di compilazione lenta. Diversamente ho compilato alle volte su un PC con Windows XP ed ho notato che su questa piattaforma è più lento il processo.
Testato:
Ottimo, non appesantisce troppo il codice
Ma tu hai fatto un confronto addirittura tra 0.22 e 1.0.1 non influiscono solo i fronzoli di cui parlavamo
Difatti è tutto l'IDE che dalla 002x alla 1.x si è enormemente appesantito.