This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
weathersensors
#1
I'm trying to build the weather sensor in the "arduino" section. Being fairly green at compiling code I can't resolve a complie error in the IDE.
Running the compiler I get "~\arduino\weathersensors\weathersensors.ino:34:19: fatal error: twi.h: No such file or directory

   #include <twi.h>"



I'm sure it's the line 33
"extern "C" {

  #include <twi.h>
}"

Snooping through othere files I saw a comment that the built-in twi.h in the arduino wire library doesn't do a required pull-up needed.
That's where the greenneess takes over. Where is it lookng for this file and how do I go about installing all the dependancies required? I ran the makefile (another foggy area) but that didn't resolve the issue. 


Thanks for any help.
DanO
There are 10 types of people, those that understand binary and those that don't!
  Reply
#2
it should be checked into the repository. So I recommend you try running "make" from the command line for the weather sensors so they can use the right twi.

I gave up on the arduino ide years ago.

Sean
  Reply
#3
If you have the library as a zip file, go to Sketch - Include Library - Add ZIP Library... and load the zip file. It will be put in your sketchbook/libraries folder and can be used with the #include <whatever> syntax. If your include file is in the same directory as your source code, you would use the #include "whatever" syntax. You can open a new tab in the Arduino IDE and cut/paste your include file there, which is particularly useful if you intend to do modifications to that code. You would use #include "whatever" for that, and the include file will be saved in the same folder as your source code.

You don't have to use the Add Zip Library... menu to add libraries. It is also okay to just unzip the new libraries into your sketchbook/libraries folder and restart the Arduino IDE.

While I continue to use the Arduino IDE, I agree with Sean that for really advanced stuff the Arduino IDE leaves a lot to be desired. For your weather station, I'm sure it'll be fine. The next step to another IDE is a BIG step, particularly if you are on a steep learning curve.

Andy
  Reply
#4
if you still want to use the arduino ide then create a new tab copy paste this to it.
https://raw.githubusercontent.com/pypilo...sors/twi.c
example of a new tab
   
try to compile again.
see if that works..
mare liberum
  Reply
#5
Dumping the IDE gets me past the twi issuse but running make stops with "No rule to make target 'font.ttf' , needed by 'charset.h' . Stop."

What am I missing now? The file isn't in the pypilot files downloaded and I don't see anything that builds it.

Thanks guys for all your help/guidance.

(05-19-2019, 09:10 AM)abarrow Wrote: If you have the library as a zip file, go to Sketch - Include Library - Add ZIP Library... and load the zip file. It will be put in your sketchbook/libraries folder and can be used with the #include <whatever> syntax. If your include file is in the same directory as your source code, you would use the #include "whatever" syntax. You can open a new tab in the Arduino IDE and cut/paste your include file there, which is particularly useful if you intend to do modifications to that code. You would use #include "whatever" for that, and the include file will be saved in the same folder as your source code.

You don't have to use the Add Zip Library... menu to add libraries. It is also okay to just unzip the new libraries into your sketchbook/libraries folder and restart the Arduino IDE.

While I continue to use the Arduino IDE, I agree with Sean that for really advanced stuff the Arduino IDE leaves a lot to be desired. For your weather station, I'm sure it'll be fine. The next step to another IDE is a BIG step, particularly if you are on a steep learning curve.

Andy

It's a steep learning curve while standing on the shoulders of giants, but a freaking vertical wall when I get down!
There are 10 types of people, those that understand binary and those that don't!
  Reply
#6
The data repository contains font.ttf used.

https://github.com/pypilot/pypilot_data
  Reply
#7
(05-27-2019, 07:02 PM)seandepagnier Wrote: The data repository contains font.ttf used.

https://github.com/pypilot/pypilot_data

Thanks Sean,
"Make" ran without errors but didn't upload to the arduino.... (checked and it was the correct USB port???)
That's fine I'll figure that out as I continue to wean myself off MS Windows.
I did get the hex file though and used another utility to write it to the nano. I have a functoning wind instrument now just needs to be strappen on the mast.
Thanks again.

DanO
There are 10 types of people, those that understand binary and those that don't!
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)