This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Program for the wire: a flashlight cube. | |
#include "cubelet.h" | |
void setup() { | |
block_value = 0; | |
} | |
void loop() { | |
if (weighted_average() >= 128) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cubelet.h" | |
/** | |
* Sensor izquierdo: 88467 | |
* Sensor centro: 88373 | |
* Sensor derecho: 83755 | |
*/ | |
void setup() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Cabezal de lectura de la máquina. | |
* | |
* Programa para el bloque rotador. Es desde este bloque desde donde se controla | |
* la operación de toda la máquina: sube o baja el sensor de luz para leer | |
* o escribir en la cinta; con su valor de bloque controla la dirección de las | |
* los motores. | |
*/ | |
#include "cubelet.h" |
OlderNewer