My First Project

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
victor__
 
Posts: 3
Joined: Sat Oct 10, 2015 8:09 pm

My First Project

Post by victor__ »

Hi all, first time noob to you.
First time posting
And am just loving my arduino-uno, it's number Awesome!!!

Am putting together a weather station with moving dials and everything
so far got the seven-segmented led display working
And I got the humidity/temp sensor to work
***all without burning up my UNO***

But I'm having problems with:

Code: Select all

/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp: In member function ‘void Adafruit_BMP280::write8(byte, byte)’:
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:102:11: error: ‘class SPIClass’ has no member named ‘beginTransaction’
       SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
           ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:102:67: error: ‘SPISettings’ was not declared in this scope
       SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
                                                                   ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:108:11: error: ‘class SPIClass’ has no member named ‘endTransaction’
       SPI.endTransaction();              // release the SPI bus
           ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp: In member function ‘uint8_t Adafruit_BMP280::read8(byte)’:
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:130:11: error: ‘class SPIClass’ has no member named ‘beginTransaction’
       SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
           ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:130:67: error: ‘SPISettings’ was not declared in this scope
       SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
                                                                   ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:136:11: error: ‘class SPIClass’ has no member named ‘endTransaction’
       SPI.endTransaction();              // release the SPI bus
           ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp: In member function ‘uint16_t Adafruit_BMP280::read16(byte)’:
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:159:11: error: ‘class SPIClass’ has no member named ‘beginTransaction’
       SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
           ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:159:67: error: ‘SPISettings’ was not declared in this scope
       SPI.beginTransaction(SPISettings(500000, MSBFIRST, SPI_MODE0));
                                                                   ^
/home/vic0/sketchbook/libraries/Adafruit_BMP280/Adafruit_BMP280.cpp:165:11: error: ‘class SPIClass’ has no member named ‘endTransaction’
       SPI.endTransaction();              // release the SPI bus
When I'm compiling I keep getting these library errors ^^^^^^
I don't know what's going on. I may try finding a different library for this if I can.

Having lots of fun though, it's great, Lights up changes the display over and over, and Works Great!!!

User avatar
Franklin97355
 
Posts: 23910
Joined: Mon Apr 21, 2008 2:33 pm

Re: My First Project

Post by Franklin97355 »

Could you post your code so we can take a look?

User avatar
victor__
 
Posts: 3
Joined: Sat Oct 10, 2015 8:09 pm

Re: My First Project

Post by victor__ »

I found a different library, and now it works fine.

I was basically just following the instruction manual, nothing fancy for an IC2 device
and no I can't show you
I was following the instructions from this:\/\/\/\/\/\/\/\/\/\/ But at the same trying to modify it for i2c and it did just not ...

https://learn.adafruit.com/adafruit-bmp ... g-and-test
...want to behave with the atmega328 uno and the bmp280
Sensor.h says it supports the other bmp1xx's but bmp280 was excluded and I wonder if that's not why


I was running into a dependency nightmare, and also the instructions are for a metro board
And the pictures were for metro wirings. Understandably I was pretty confused when I asked for help!
But it runs now, thanks anyway!!! I posted a video to facebook
Image
920 mm's of Hg

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”