Jump to content
I2Cdevlib Forums

All Activity

This stream auto-updates

  1. Today
  2. Thanks in advance I have solve my issues regarding mpu6050 by replacing with new sensor
  3. Yesterday
  4. hey there i m preety newbie in adriuno world so i'm measuring al xyz axis just to play with it and check their reading lets sart from here i copied codes for MPU6050 in exmple i tried mpu6050_raw Now connections MPU Adriuno vcc - vcc 5v gnd - gnd SCL - A5 ( vcc - 10kohm - SCL/A5) pull up resistor as gpt guided me SDA - A4 ( vcc - 10kohm - SDA/A4) OutPut is 11:59:50.212 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.280 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.246 -> a/g: 0 0 0 0 0 0 11:59:50.280 -> a/g: 0 0 0 0 0 0 any suggestions are appreciated:) MPU6050_raw.ino
  5. Last week
  6. Earlier
  7. Hi, Firstly thanks for this great library. Very professional, thorough, well structured and well documented. I wanted to run a 9250 sensor but the chinese supplier sent a board fitted with something else which is only 6axis. They still insist it is 9250. I ordered a second one from a different supplier which is same but different. Both 6 axis , the Arduino scanner program shows one replying on 68 the other on 69 . Sticking the "68" , I'm connecting it to Teensy 4.0 . I tweeked the software to connect as though it was 9250 using Wire1 since I did not get anything on Wire (this maybe a teensy issue, not sure). That got it spewing credible 6axis data nicely. The mag data just returns zeros. Since it is 6 axis I'm assuming that it is some kind of 60xx variant and it seems better to use that part of the library. But I don't see the same flexibility in that part of the code to set which i2c port is used. Is there a simple way to do this? Thanks.
  8. Have you tried deleting the processing file in the mpu6050 library under the MPU6050_DMP6 example folder? Deleting the pde file helped mine
  9. After a very deep dive into the pins_arduino.h files for each mcu type, I located the SCL and SDA for the ESP32-S3 which are Pin 8 and Pin 9 respectively. Problem sorted as the library is now happy and I am working again.
  10. I am replacing all my projects with Arduino MEGA boards and have selected to use the Espressif ESP32-S3 dev kit. It appears that the <wire.h> called is linked to the Arduino Mega pins SDA = 21 & SCL = 22. Unfortunately GPIO pin 22 does not exist on the pin headers for Espressif and many other board makers. MPU6050 will not initialize because the I2C comms can't be established. What I seek is a version of the "wire.h" that calls all the relevant files yet permits defining SDA and SCL using something like wire.begin(SDA, SCL); where the pin numbers are previously defined as #define SDA 4 as an example. I want to run the example code "MPU6050_DMP6_using_DMP_V6v12.ino" The latest github repository does show an ESP32 flavor but it is for the ESP-IDE not the Arduino IDE ( I use PlatformIO IDE).
  11. Hi ! I had the same issue with Arduino Leonardo... Using MPU6050_6Axis_MotionApps_V6_12.h solve the issue.
  12. Hola a todos, me gustaria preguntarles algo por si alguno de ustedes ya ha trabajado con esto, pero estoy haciendo un programa con el SensortTile.Box y estoy intentando analizar el RawData que he medido con el acelerometro, no comprendo como obtener los valores de los ejes con este RawData. Quiero aclarar que el RawData esta dado en formato hexadecimal, si alguien pudiera ayudarme lo agradeceria.
  13. I always find error message when I upload the codes from MPU6050_DMP6. The Error message as follows: C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:144:18: error: variable or field 'serialEvent' declared void void serialEvent(Serial port) { ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:144:25: error: expected ')' before 'port' void serialEvent(Serial port) { ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:32:1: error: 'import' does not name a type; did you mean 'qsort'? import processing.serial.*; ^~~~~~ qsort C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:33:1: error: 'import' does not name a type; did you mean 'qsort'? import processing.opengl.*; ^~~~~~ qsort C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:34:1: error: 'import' does not name a type; did you mean 'qsort'? import toxi.geom.*; ^~~~~~ qsort C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:35:1: error: 'import' does not name a type; did you mean 'qsort'? import toxi.processing.*; ^~~~~~ qsort C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:43:1: error: 'ToxiclibsSupport' does not name a type ToxiclibsSupport gfx; ^~~~~~~~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:45:1: error: 'Serial' does not name a type Serial port; // The serial port ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:46:5: error: decomposition declaration cannot be declared with type 'char' char[] teapotPacket = new char[14]; // InvenSense Teapot packet ^~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:46:5: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:46:5: error: empty decomposition declaration C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:46:8: error: expected initializer before 'teapotPacket' char[] teapotPacket = new char[14]; // InvenSense Teapot packet ^~~~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:51:6: error: decomposition declaration cannot be declared with type 'float' float[] q = new float[4]; ^~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:51:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:51:6: error: empty decomposition declaration C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:51:9: error: expected initializer before 'q' float[] q = new float[4]; ^ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:52:19: error: conversion from 'Quaternion*' to non-scalar type 'Quaternion' requested Quaternion quat = new Quaternion(1, 0, 0, 0); ^~~~~~~~~~~~~~~~~~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:54:6: error: decomposition declaration cannot be declared with type 'float' float[] gravity = new float[3]; ^~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:54:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:54:6: error: empty decomposition declaration C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:54:9: error: expected initializer before 'gravity' float[] gravity = new float[3]; ^~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:55:6: error: decomposition declaration cannot be declared with type 'float' float[] euler = new float[3]; ^~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:55:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:55:6: error: empty decomposition declaration C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:55:9: error: expected initializer before 'euler' float[] euler = new float[3]; ^~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:56:6: error: decomposition declaration cannot be declared with type 'float' float[] ypr = new float[3]; ^~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:56:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:56:6: error: empty decomposition declaration C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:56:9: error: expected initializer before 'ypr' float[] ypr = new float[3]; ^~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde: In function 'void setup()': C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:58:6: error: redefinition of 'void setup()' void setup() { ^~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPU6050_DMP6.ino:165:6: note: 'void setup()' previously defined here void setup() { ^~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:60:20: error: 'OPENGL' was not declared in this scope size(300, 300, OPENGL); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:60:5: error: 'size' was not declared in this scope size(300, 300, OPENGL); ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:60:5: note: suggested alternative: 'Wire' size(300, 300, OPENGL); ^~~~ Wire C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:61:5: error: 'gfx' was not declared in this scope gfx = new ToxiclibsSupport(this); ^~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:61:15: error: expected type-specifier before 'ToxiclibsSupport' gfx = new ToxiclibsSupport(this); ^~~~~~~~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:64:5: error: 'lights' was not declared in this scope lights(); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:64:5: note: suggested alternative: 'gets' lights(); ^~~~~~ gets C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:65:5: error: 'smooth' was not declared in this scope smooth(); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:65:5: note: suggested alternative: 'short' smooth(); ^~~~~~ short C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:68:20: error: 'class HardwareSerial' has no member named 'list' println(Serial.list()); ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:68:5: error: 'println' was not declared in this scope println(Serial.list()); ^~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:68:5: note: suggested alternative: 'printf' println(Serial.list()); ^~~~~~~ printf C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:71:30: error: 'class HardwareSerial' has no member named 'list' String portName = Serial.list()[0]; ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:77:5: error: 'port' was not declared in this scope port = new Serial(this, portName, 115200); ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:77:5: note: suggested alternative: 'word' port = new Serial(this, portName, 115200); ^~~~ word C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:77:16: error: expected type-specifier before 'Serial' port = new Serial(this, portName, 115200); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde: In function 'void draw()': C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:88:9: error: 'port' was not declared in this scope port.write('r'); ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:88:9: note: suggested alternative: 'word' port.write('r'); ^~~~ word C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:93:5: error: 'background' was not declared in this scope background(0); ^~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:93:5: note: suggested alternative: 'round' background(0); ^~~~~~~~~~ round C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:96:5: error: 'pushMatrix' was not declared in this scope pushMatrix(); ^~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:97:15: error: 'width' was not declared in this scope translate(width / 2, height / 2); ^~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:97:26: error: 'height' was not declared in this scope translate(width / 2, height / 2); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:97:5: error: 'translate' was not declared in this scope translate(width / 2, height / 2); ^~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:109:10: error: decomposition declaration cannot be declared with type 'float' float[] axis = quat.toAxisAngle(); ^~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:109:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto' C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:109:10: error: empty decomposition declaration C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:109:13: error: expected initializer before 'axis' float[] axis = quat.toAxisAngle(); ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:110:12: error: 'axis' was not declared in this scope rotate(axis[0], -axis[1], axis[3], axis[2]); ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:110:12: note: suggested alternative: 'exit' rotate(axis[0], -axis[1], axis[3], axis[2]); ^~~~ exit C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:110:5: error: 'rotate' was not declared in this scope rotate(axis[0], -axis[1], axis[3], axis[2]); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:110:5: note: suggested alternative: 'rename' rotate(axis[0], -axis[1], axis[3], axis[2]); ^~~~~~ rename C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:113:5: error: 'fill' was not declared in this scope fill(255, 0, 0, 200); ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:113:5: note: suggested alternative: 'ftell' fill(255, 0, 0, 200); ^~~~ ftell C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:114:5: error: 'box' was not declared in this scope box(10, 10, 200); ^~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:120:5: error: 'rotateX' was not declared in this scope rotateX(PI/2); ^~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:122:5: error: 'popMatrix' was not declared in this scope popMatrix(); ^~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:126:16: error: 'TRIANGLES' was not declared in this scope beginShape(TRIANGLES); ^~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:126:5: error: 'beginShape' was not declared in this scope beginShape(TRIANGLES); ^~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:126:5: note: suggested alternative: 'blinkState' beginShape(TRIANGLES); ^~~~~~~~~~ blinkState C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:127:5: error: 'vertex' was not declared in this scope vertex(-100, 2, 30); vertex(0, 2, -80); vertex(100, 2, 30); // wing top layer ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:131:5: error: 'endShape' was not declared in this scope endShape(); ^~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:132:16: error: 'QUADS' was not declared in this scope beginShape(QUADS); ^~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde: At global scope: C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:144:18: error: variable or field 'serialEvent' declared void void serialEvent(Serial port) { ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:144:25: error: expected ')' before 'port' void serialEvent(Serial port) { ^~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde: In function 'void drawCylinder(float, float, float, int)': C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:207:16: error: 'QUAD_STRIP' was not declared in this scope beginShape(QUAD_STRIP); ^~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:207:5: error: 'beginShape' was not declared in this scope beginShape(QUAD_STRIP); ^~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:207:5: note: suggested alternative: 'blinkState' beginShape(QUAD_STRIP); ^~~~~~~~~~ blinkState C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:209:9: error: 'vertex' was not declared in this scope vertex(topRadius*cos(angle), 0, topRadius*sin(angle)); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:213:5: error: 'endShape' was not declared in this scope endShape(); ^~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:218:20: error: 'TRIANGLE_FAN' was not declared in this scope beginShape(TRIANGLE_FAN); ^~~~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:221:9: error: 'vertex' was not declared in this scope vertex(0, 0, 0); ^~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:232:20: error: 'TRIANGLE_FAN' was not declared in this scope beginShape(TRIANGLE_FAN); ^~~~~~~~~~~~ C:\Users\steth\AppData\Local\Temp\.arduinoIDE-unsaved2023524-8068-1i5wnfp.nzl9\MPU6050_DMP6\MPUTeapot.pde:235:9: error: 'vertex' was not declared in this scope vertex(0, tall, 0); ^~~~~~ exit status 1 Compilation error: variable or field 'serialEvent' declared void
  1. Load more activity
×
×
  • Create New...