IFD:Designing Networked Objects/César Felipe Daher: Difference between revisions

From Medien Wiki
Line 40: Line 40:
==Development==
==Development==


===Twitter search===
The first attempts were to connect the ESP8266 to the internet and use it to access the Twitter API to retrieve tweets without issuing any additional commands. The Twitter API library for Arduino comes with three basic functions:
The first attempts were to connect the ESP8266 to the internet and use it to access the Twitter API to retrieve tweets without issuing any additional commands. The Twitter API library for Arduino comes with three basic functions:


Line 62: Line 63:
<code>std::string search_str = "up OR down OR left OR right -RT";</code>
<code>std::string search_str = "up OR down OR left OR right -RT";</code>


===LED matrix===
These commands were devised to navigate a 3x3 LED matrix in which the LEDs were stored in the code as a 2D array. That way, they were able to be lit up by calling their indexes.
These commands were devised to navigate a 3x3 LED matrix in which the LEDs were stored in the code as a 2D array. That way, they were able to be lit up by calling their indexes.