Condition sur un etat de pixel


bonjour,

j'utilise un écran oled avec un librairie adafruit.

pour allumer un pixel, la commande est :
code: [select]
display.drawpixel(uint16_t x, uint16_t y, uint16_t color);

uint16_t color = white pour allumer
uint16_t color = black pour éteindre

j'aimerai faire une condition du type :

code: [select]
if (drawpixel(uint16_t x, uint16_t y)==white){
...
...
}


Ça marche pas aussi simplement.
savez vous si c'est possible ?

merci

bonjour,

la fonction drawpixel ne renvoie rien ...
donc non.
a priori dans la librairie il n'y pas de fonction getpixel ma connaissance.

il faudrait donc l'écrire ! peut être avec une autre librairie ...


Arduino Forum > International > Français (Moderators: jfs, Snootlab) > Condition sur un etat de pixel


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???