Go Down

Topic: IDE 1.6.0 is now available for download (Read 39009 times) previous topic - next topic

Peter_n

#105
Feb 19, 2015, 05:11 pm Last Edit: Feb 19, 2015, 05:12 pm by Peter_n
What do you mean, that you got the libraries in the right place? Did you change something with de standard libraries that come with all the Arduino files ? Did you put your custom libraries in the Arduino folder of the included standard libraries ?

The custom libraries are in the folder "libraries" next to your project folders.
Sometimes a library is included with the Arduino files, then you should remove it from your own custom "libraries" folder.

I think your Arduino is no longer original. Please remove the D:\Program Files (x86)\Arduino folder and install Arduino again. Do not change anything in that folder.

If you need to install a custom library, the best way is via the Arduino IDE, select the option in the menu to install a zip file.

gregor36

I installed IDE 1.6.0 and have troubles with compiling


Arduino:1.6.0 (Windows 8), Płyta:"Arduino Uno"

In file included from C:\Users\Grzegorz\Documents\Arduino\libraries\liquidcrystal/LiquidCrystal_I2C.h:35:0,
                 from DHT-lCD2.ino:3:
C:\Users\Grzegorz\Documents\Arduino\libraries\liquidcrystal/LCD.h:421:44: error: 'prog_uchar' does not name a type
    void createChar(uint8_t location, const prog_uchar charmap[]);
                                            ^
C:\Users\Grzegorz\Documents\Arduino\libraries\liquidcrystal/LCD.h:421:63: error: ISO C++ forbids declaration of 'charmap' with no type [-fpermissive]
    void createChar(uint8_t location, const prog_uchar charmap[]);
                                                               ^
Błąd kompilacji.

  Raport ten będzie miał więcej informacji z
  "Pokaż szczegółowe informacje podczas kompilacji"
  włącz w Plik > Preferencje

Peter_n

The LiquidCrystal library is part of the Arduino files, but the I2C version is not. I assume you installed that one.

The prog_uchar are no longer used.
I think it needs to be "const char charmap[]".
Could you change that in the source code, or is there perhaps a new version of that library ?

Examples how to use PROGMEM is here : http://www.gammon.com.au/progmem


flyingbuddy

I have just downloaded 1.6.0 and tried a previous "no error" compile in 1.5.0 sketch and got this error.

Code: [Select]


GTBA_Logger.ino:24:57: error: 'A8' was not declared in this scope
GTBA_Logger.ino:24:61: error: 'A9' was not declared in this scope
GTBA_Logger.ino:24:65: error: 'A10' was not declared in this scope
GTBA_Logger.ino:24:70: error: 'A11' was not declared in this scope
Error compiling.


This is my line of code that did work in 1.5. A0 to A7 still work.

Code: [Select]
int analogPin[]  =   {  A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11 };

I am using analogPin for scanning all the analogue i/ps on a due.

Has the way to declare analogue i/p's changed? anyone help please?

gregor36

The LiquidCrystal library is part of the Arduino files, but the I2C version is not. I assume you installed that one.

The prog_uchar are no longer used.
I think it needs to be "const char charmap[]".
Could you change that in the source code, or is there perhaps a new version of that library ?

Examples how to use PROGMEM is here : http://www.gammon.com.au/progmem


what to change in a sketch

#include "DHT.h"          // biblioteka DHT
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

#define BACKLIGHT_PIN 3

LiquidCrystal_I2C   lcd(0x27,2,1,0,4,5,6,7);

#define DHTPIN 2          // numer pinu sygnałowego
 
DHT dht;                  // definicja czujnika
 
void setup()
{
  Serial.begin(9600);     // otworzenie portu szeregowego
  dht.setup(DHTPIN);      // inicjalizacja czujnika
  // dht.setup(DHTPIN, DHT11);      // inicjalizacja czujnika DHT11
  // dht.setup(DHTPIN, DHT22);      // inicjalizacja czujnika DHT12
  lcd.begin (16,2);
 lcd.setBacklightPin(BACKLIGHT_PIN,POSITIVE);
 lcd.setBacklight(HIGH);

}
 
void loop()
{
  // Miniamalne opóźnienie odczytu
  delay(dht.getMinimumSamplingPeriod());
 
  // Odczyt temperatury i wilgotności powietrza
  float t = dht.getTemperature();
  float h = dht.getHumidity();
 
  // Sprawdzamy poprawność danych
  if (dht.getStatus())
  {
    // Jeśli nie, wyświetlamy informację o błędzie
    lcd.println("Blad odczytu danych z czujnika");
  } else
    // Jeśli tak, wyświetlamy wyniki pomiaru
    lcd.setCursor(0, 0);
    lcd.print("Wilgoc: ");
    lcd.print(h);
    lcd.print(" % ");
    lcd.setCursor(0, 1);
    lcd.print("Temper: ");
    lcd.print(t);
    lcd.print(" C  ");
   
 }

Peter_n

gregor36, I ment in the libraries for the I2C liquid crystal.
Can you tell me which libraries did you install ? and where did you come from ?

gregor36

#111
Feb 20, 2015, 09:13 am Last Edit: Feb 20, 2015, 05:45 pm by gregor36
gregor36, I ment in the libraries for the I2C liquid crystal.
Can you tell me which libraries did you install ? and where did you come from ?
LiquidCrystal_I2C v1.2.1

Polska

jopiek

#112
Feb 20, 2015, 11:08 am Last Edit: Feb 20, 2015, 11:08 am by jopiek
Interesting on OS X 10.10.3 when dumping a lot of values to the Serial with a speed of 115200 bps I get an out of heap space error and then 1.6.0 becomes meshed-up (needed to restart Arduino). With 16 Gb memory the MBP shouldn't be the problem I think.

Peter_n

#113
Feb 20, 2015, 11:13 am Last Edit: Feb 20, 2015, 11:16 am by Peter_n
jopiek, you have to explain a lot more.
Which Arduino board ? There is a big difference between the Uno or the Leonardo.
What is meshed up ? Does it slow down (like 1000 times) ?

I'm guessing you have the Leonardo (or Micro or Yun), then the data is not 115200 baud, because the baudrate is kind of ignored when the CDC usb is used. Could you try to measure how many bytes per second you receive ?

You should not try to continueusly transmit data anyway ;)

nikosk

I'm also having intermittent  issues of loosing characters when receiving from software serial in a sketch that uses both HW Serial and Software serial.

I can recall that this was not happening with 1.0.6 but will need to re-install it and double check.

n the mean time, any pointers/caveats  in using those two together with 1.6.0 ?

Thanks


Peter_n

#115
Feb 20, 2015, 11:27 pm Last Edit: Feb 20, 2015, 11:28 pm by Peter_n
Can you give a test sketch that I could try ?
Do you have other interrupts ? like I2C ? with receiveEvent() and requestEvent() handlers ?

Search for 'serial' and look for the hardware and software serial for "avr" : http://www.arduino.cc/en/Main/ReleaseNotes
There is even a "Pile of HardwareSerial improvements".

Steamboat

How can I switch off the "Verify" action with a DUE?
The ordinary setting don't work...

Rainer from Germany
wood-walker.org

Steamboat

What is this COM2 good for?
Rainer from Germany
wood-walker.org

jopiek

#118
Feb 21, 2015, 08:43 pm Last Edit: Feb 21, 2015, 08:44 pm by jopiek
jopiek, you have to explain a lot more.
Which Arduino board ? There is a big difference between the Uno or the Leonardo.
What is meshed up ? Does it slow down (like 1000 times) ?

I'm guessing you have the Leonardo (or Micro or Yun), then the data is not 115200 baud, because the baudrate is kind of ignored when the CDC usb is used. Could you try to measure how many bytes per second you receive ?

You should not try to continueusly transmit data anyway ;)
Well I don't agree about transmitting data, depending on the phase of the project and target of the actual program. Why would it give memory errors?

The only reason I can think of this would occur is that all those lines are being kept in the Arduino IDE program memory, that is bad programming of course! I'm using a Teensy 3.1 b.t.w.
Since boards like the Uno / Leonardo / Teensy don't support a JTAG debugger one will need to use the Serial for debugging (and/or thinks like heart beat LED's etc.).

My final software program doesn't even use the normal Serial, but how else can I debug. Now one needs to remember to close Serial when coding again and that is just very annoying.

Peter_n

You are complaining about the new Arduino IDE 1.6.0 development environment, yet you use a Teensy 3.1 Cortex-M4 microcontroller ? And the trouble is mostly on the OS X operating system ? Don't spoil our 1.6.0 release celebration party.

The Teensy is an excellent piece of hardware, but you might try to ask about it at pjrc.com.

Go Up