[semi OT ] programmazione arduino

nel listato che segue, reperibile qui

formatting link

void ht1632c_send_bits(byte bits, byte firstbit) {

while(firstbit) { digitalWrite(DISPLAY_WR, LOW); if (bits & firstbit) digitalWrite(DISPLAY_DATA, HIGH); else digitalWrite(DISPLAY_DATA, LOW); digitalWrite(DISPLAY_WR, HIGH); firstbit >>= 1; } }

alla fine c'ha quel " >>= " che non comprendo

qui non se ne parla file:///Z:/arduino%20IDE/arduino-1.5.6-r2-windows/arduino-1.5.6-r2/reference/index.html

formatting link

come si interpretano le 'concatenazioni' di di operatori ???

assieme all'uguale come si comporta ?

ciao e grazie :-)

Reply to
Tony Pedi
Loading thread data ...

message de news:lsn7kq$o35$ snipped-for-privacy@speranza.aioe.org...

strettamente superiore o uguale.

== strettamente uguale

ecc.....

Reply to
marcello

Il 16/08/2014 11:27, marcello ha scritto:

firstbit >>= 1;

e' come scrivere:

firstbit = firstbit >> 1;

Questa sintassi vale per tutte le operazioni; e' solo un modo per scrivere meno parole! ciao Angelo

Reply to
Deh!

Il 16/08/2014 11:27, marcello ha scritto:

Scusami ma ho sbagliato messaggio ed ho risposto a te, ma dovevo/volevo rispondere a Tony Pedi Angelo

Reply to
Deh!

Il 16/08/2014 11:34, Deh! ha scritto:

grazie :-)

Reply to
Tony Pedi

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.