Programe mi placa Arduino Due con el Acelerometro MMA7361 con el siguiente codigo:
const unsigned X_AXIS_PIN = 0;
const unsigned Y_AXIS_PIN = 2;
const unsigned Z_AXIS_PIN = 4;
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.print(analogRead(X_AXIS_PIN));
Serial.print(" ");
Serial.print(analogRead(Y_AXIS_PIN));
Serial.print(" ");
Serial.println(analogRead(Z_AXIS_PIN));
delay(100);
}
Al usarlo el programing port me devuelve esto:
Sketch uses 11.028 bytes (2%) of program storage space. Maximum is 524.288 bytes.
No device found on COM5
y al usarlo en el native port:
Erase flash
Write 12172 bytes to flash
[ ] 0% (0/48 pages)
[====== ] 20% (10/48 pages)
[============ ] 41% (20/48 pages)
[================== ] 62% (30/48 pages)
[========================= ] 83% (40/48 pages)
[==============================] 100% (48/48 pages)
Verify 12172 bytes of flash
[ ] 0% (0/48 pages)
[====== ] 20% (10/48 pages)
[============ ] 41% (20/48 pages)
[================== ] 62% (30/48 pages)
[========================= ] 83% (40/48 pages)
[==============================] 100% (48/48 pages)
Verify successful
Set boot flash true
CPU reset.
Alguna sugerencia?