Show Posts
Pages: [1]
1  International / Deutsch / Re: FM Radio von Sparkfun on: February 27, 2013, 10:43:37 am
Quote
Das Shield wird über das SPI Interface angesteuert. Der Mega hat das SPI-Interface aber nicht auf den pins 11, 12, und 13.

Das war der entscheidende Hinweis. Es ist aber nicht nur 11, 12 und 13, sondern auch noch 10, hab sie umverdrahtet auf 50, 51, 52 und 53 und das Programm läuft weiter. Jetzt muss ich nur noch Sound raus bekommen :-).

Vielen Dank für eure Hilfe, ....... schon wieder *lol*
2  International / Deutsch / Re: FM Radio von Sparkfun on: February 26, 2013, 04:50:41 pm
wo ist der unterschied?
mal abgesehen von der Startfrequnz? ich hab halt was genommen das es bei uns wirklich gibt.
bis dahin kommt das programm ja garnicht weil es sich davor schon aufhängt.

es ist übrigens das original bsp. programm vom hersteller.

ich hab auch noch nicht kappiert wiso es mit dem UNO läuft aber nicht mit dem MEGA
3  International / Deutsch / FM Radio von Sparkfun on: February 26, 2013, 01:03:29 pm
Hi,
ich hab mir von Sparkfun dieses FM shield geholt : https://www.sparkfun.com/products/10342?

läuft auch auf meinem UNO ohne Probleme, aber nicht auf meinem Mega. Ich kann mir nicht erklären warum.

Ich hab in den skatch zwei Marken eingebaut um zu sehen wo es hängt. Die "Test1" ereicht er noch, die "Test2" nicht mehr.
Also muss ja der Fehler in der zeile
Code:
radio.begin(FM);
liegen.
Hat jemand ne Ahnung warum? Und warum nur beim MEGA?

Code:
//Add the Si4735 Library to the sketch.
#include <Si4735.h>

//Create an instance of the Si4735 named radio.
Si4735 radio;

void setup()
{
  //Create a serial connection
  Serial.begin(9600);
Serial.print("test1"); //**********************************erste Marke wird noch erreicht*********************
  //Initialize the radio to the FM mode (Possible modes are AM, FM, SW, LW).
  //The mode will set the proper bandwidth. Ensure that the antenna
  //switch on the shield is configured for the desired mode.
  radio.begin(FM);
Serial.print("test2");// *********************************zweite Marke nicht mehr *******************
  //Set the FM Frequency to 97.3 MHz
  radio.tuneFrequency(9650);
}

void loop()
{      
  //Wait until a character comes in on the Serial port.
  if(Serial.available()>0){
    //Decide what to do based on the character received.
    switch(Serial.read()){
      //If we get the number 8, turn the volume up.
      case '8':radio.volumeUp();
        break;
      //If we get the number 2, turn the volume down.
      case '2':radio.volumeDown();
        break;
      //If we get the number 4, seek down to the next channel in the current bandwidth (wrap to the top when the bottom is reached).
      case '4':radio.seekDown();
        break;
      //If we get the number 6, seek up to the next channel in the current bandwidth (wrap to the bottom when the top is reached).
      case '6':radio.seekUp();
        break;
      //If we get the letter m, mute the radio.
      case 'M':
      case 'm':radio.mute();
        break;
      //If we get the letter u, unmute the radio.
      case 'U':
      case 'u':radio.unmute();
        break;
      //If we get the letter s, print the current status of the radio.
      case 'S':
      case 's':Serial.print((unsigned char)radio.getStatus());
      default:
        break;
    }
  }  
}

4  International / Deutsch / Re: Wie Uhrzeit in den Arduino bekommen? on: February 26, 2013, 12:44:20 pm
Ich hab gerade mit DCF77 rumgespielt und das ist super einfach und sehr genau.

Es giebt alle Biblioteken schon fertig, alles easy.

Und es ist billig. Du brauchst nur das Antennenmodul für ein paar Euronen.

Die Erklärung wie es funktioniert und die Biblioteken giebts hier:

http://playground.arduino.cc/Code/DCF77
5  International / Deutsch / Re: Probleme mit TouchTFT on: February 25, 2013, 08:42:16 am
Jetzt ist einiges klarer.

Vielen dank für deine schnelle Hilfe.
6  International / Deutsch / Re: Probleme mit TouchTFT on: February 24, 2013, 03:35:28 am
Ok das war das Problem, jetzt läufts!!!

Vielen Dank für deine Hilfe.

Was ist eigentlich genau der unterschied zwischen:

Code:
#include <TFT.h>

und

Code:
#include "TFT.h"
7  International / Deutsch / Re: Probleme mit TouchTFT on: February 23, 2013, 05:45:15 pm
hmmm hab ich so nicht kapiert.
das ist die libery dazu. Sie heisst TFT.h und ist im selben verzeichniss wie die text.ino datei.

Code:
/*
  ST7781R TFT Library.

  2011 Copyright (c) Seeed Technology Inc.
 
  Authors: Albert.Miao, Visweswara R (with initializtion code from TFT vendor)
 
  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 2.1 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
/*
  Modified record:
    2012.3.27 by Frankie.Chu
    Add the macro definitions,public funtion and private variable for the char display direction.
*/
#include <Arduino.h>
#include <avr/pgmspace.h>

#ifndef TFT_h
#define TFT_h

#define SEEEDUINO

//Basic Colors
#define RED 0xf800
#define GREEN 0x07e0
#define BLUE 0x001f
#define BLACK 0x0000
#define YELLOW 0xffe0
#define WHITE 0xffff

//Other Colors
#define CYAN 0x07ff
#define BRIGHT_RED 0xf810
#define GRAY1 0x8410 
#define GRAY2 0x4208 

//TFT resolution 240*320
#define MIN_X 0
#define MIN_Y 0
#define MAX_X 240
#define MAX_Y 320

#ifdef SEEEDUINO

//========================================
#define DDR_CS      DDRB
#define PORT_CS     PORTB
#define CS_BIT      0x04
#define CS_OUTPUT   {DDR_CS|=CS_BIT;}
#define CS_HIGH     {PORT_CS|=CS_BIT;}
#define CS_LOW      {PORT_CS&=~CS_BIT;}

//-----------------------------------------

#define DDR_RS      DDRB
#define PORT_RS     PORTB
#define RS_BIT      0x08
#define RS_OUTPUT   {DDR_RS|=RS_BIT;}
#define RS_HIGH     {PORT_RS|=RS_BIT;}
#define RS_LOW      {PORT_RS&=~RS_BIT;}

//-----------------------------------------

#define DDR_WR      DDRB
#define PORT_WR     PORTB
#define WR_BIT      0x10
#define WR_OUTPUT   {DDR_WR|=WR_BIT;}
#define WR_HIGH     {PORT_WR|=WR_BIT;}
#define WR_LOW      {PORT_WR&=~WR_BIT;}
#define WR_RISING   {PORT_WR|=WR_BIT;PORT_WR&=~WR_BIT;}

//-----------------------------------------

#define DDR_RD      DDRB
#define PORT_RD     PORTB
#define RD_BIT      0x20
#define RD_OUTPUT   {DDR_RD|=RD_BIT;}
#define RD_HIGH     {PORT_RD|=RD_BIT;}
#define RD_LOW      {PORT_RD&=~RD_BIT;}
#define RD_RISING   {PORT_RD|=RD_BIT;PORT_RD&=~RD_BIT;}
//========================================

#endif

#ifdef MEGA
//==================/CS=====================
#define DDR_CS      DDRB
#define PORT_CS     PORTB
#define CS_BIT      0x10
#define CS_OUTPUT   {DDR_CS|=CS_BIT;}
#define CS_HIGH     {PORT_CS|=CS_BIT;}
#define CS_LOW      {PORT_CS&=~CS_BIT;}

//------------------RS----------------------

#define DDR_RS      DDRB
#define PORT_RS     PORTB
#define RS_BIT      0x20
#define RS_OUTPUT   {DDR_RS|=RS_BIT;}
#define RS_HIGH     {PORT_RS|=RS_BIT;}
#define RS_LOW      {PORT_RS&=~RS_BIT;}

//------------------WR----------------------

#define DDR_WR      DDRB
#define PORT_WR     PORTB
#define WR_BIT      0x40
#define WR_OUTPUT   {DDR_WR|=WR_BIT;}
#define WR_HIGH     {PORT_WR|=WR_BIT;}
#define WR_LOW      {PORT_WR&=~WR_BIT;}
#define WR_RISING   {PORT_WR|=WR_BIT;PORT_WR&=~WR_BIT;}

//------------------RD---------------------

#define DDR_RD      DDRB
#define PORT_RD     PORTB
#define RD_BIT      0x80
#define RD_OUTPUT   {DDR_RD|=RD_BIT;}
#define RD_HIGH     {PORT_RD|=RD_BIT;}
#define RD_LOW      {PORT_RD&=~RD_BIT;}
#define RD_RISING   {PORT_RD|=RD_BIT;PORT_RD&=~RD_BIT;}
//========================================

#endif

#ifdef MAPLE
 // not yet implemented
#endif

/**Macro definitions for char display direction**/
#define LEFT2RIGHT 0
#define DOWN2UP    1
#define RIGHT2LEFT 2
#define UP2DOWN    3

extern unsigned char simpleFont[][8];

class TFT
{
public:

    void init (void);
    void paintScreenBlack(void);
    void sendCommand(unsigned int index);
    void sendData(unsigned int data);
    void pushData(unsigned char data);
    unsigned char getData(void);
    unsigned int readRegister(unsigned int index);

    void setXY(unsigned int poX, unsigned int poY);
    void setPixel(unsigned int poX, unsigned int poY,unsigned int color);
    void drawLine(unsigned int x0,unsigned int y0,unsigned int x1,unsigned int y1,unsigned int color);
    void drawVerticalLine(unsigned int poX, unsigned int poY,unsigned int length,unsigned int color);
    void drawHorizontalLine(unsigned int poX, unsigned int poY,unsigned int length,unsigned int color);
    void drawRectangle(unsigned int poX, unsigned int poY, unsigned int length,unsigned int width,unsigned int color);
    void fillRectangle(unsigned int poX, unsigned int poY, unsigned int length, unsigned int width, unsigned int color);
    void drawCircle(int poX, int poY, int r,unsigned int color);
    void fillCircle(int poX, int poY, int r,unsigned int color);
    void drawChar(unsigned char ascii,unsigned int poX, unsigned int poY,unsigned int size, unsigned int fgcolor);
    void drawString(char *string,unsigned int poX, unsigned int poY,unsigned int size,unsigned int fgcolor);
   
    void all_pin_input(void);
    void all_pin_output(void);
    void all_pin_low(void);

    void setOrientation(unsigned int HV);
    void setDisplayDirect(unsigned char = LEFT2RIGHT);
private:
    void exitStandBy(void);
    unsigned char DisplayDirect;
};

extern TFT Tft;

#endif

kannst du mir sagen was ich ändern muss?
8  International / Deutsch / Probleme mit TouchTFT on: February 23, 2013, 12:07:38 pm
Hi,
Ich suche seit Stunden für eine Lösung von meinem Problem konnte aber nichts finden. Ich habe einen Arduino Mega und dazu ein 2,8" TFT touch pannel von seeed. Mein Problem beginnt aber schon beim übersetzen. Egal welches beispiel ich übersetze ich bekomme nur fehlermeldungen z.B.:

Code:
#include <stdint.h>
#include <TouchScreen.h>
#include <TFT.h>

#ifdef SEEEDUINO
  #define YP A2   // must be an analog pin, use "An" notation!
  #define XM A1   // must be an analog pin, use "An" notation!
  #define YM 14   // can be a digital pin, this is A0
  #define XP 17   // can be a digital pin, this is A3
#endif

#ifdef MEGA
  #define YP A2   // must be an analog pin, use "An" notation!
  #define XM A1   // must be an analog pin, use "An" notation!
  #define YM 54   // can be a digital pin, this is A0
  #define XP 57   // can be a digital pin, this is A3
#endif

void setup()
{

Tft.init();  //init TFT library

  Tft.drawString("Happy!",0,160,1,CYAN);
  Tft.drawString("Happy!",0,200,2,WHITE);
  Tft.drawString("Happy!",0,240,4,WHITE);
}

void loop()
{
  

}

Fehlermeldung:
text.ino: In function 'void setup()':
text:39: error: 'Tft' was not declared in this scope
text:41: error: 'CYAN' was not declared in this scope
text:42: error: 'WHITE' was not declared in this scope



Was mach ich falsch?
9  Using Arduino / Project Guidance / Re: Serial & display help please on: May 14, 2011, 06:52:50 am
Ok i tryed to remove the boot screen in the void setup.

Code:
void setup()
{
        Serial.begin(9600);
ioinit();           //Initialize I/O
LCDInit();     //Initialize the LCD
        LCDContrast(contrast);
        //LCDClear(BLACK);    // Clear LCD to a solid color
        //LCDPutStr(" MCC Hohenlohe", 0, 4, YELLOW, BLACK); // Write instructions on display
       
        //LCDPutStr("   RC-Remote", 20, 4, BLUE, BLACK);
        //LCDPutStr("  Designed and ", 40, 4, BLUE, BLACK);
        //LCDPutStr("    Scripted", 56, 4, BLUE, BLACK);
        //LCDPutStr("by Dixi & Roman", 72, 10, BLUE, BLACK);
        //LCDPutStr("      Mcc-", 94, 4, YELLOW, BLACK);
        //LCDPutStr("  Hohenlohe.de", 110, 4, YELLOW, BLACK);
        contrastbalken = contrast;
        //delay (3000);
        LCDClear(BLUE);
}

And ........ IT WORKS. Thank you all so much.

but ther is my next question, is ther a way to have a bootscreen without the problems? If not it is ok but i would like to have one. I do not really understand why it dont work, could somone explain me what the problem is?

10  Using Arduino / Project Guidance / Re: Serial & display help please on: May 14, 2011, 06:40:09 am
First i want to say thanks to all try to help me. How you can see i am new with scripting C.

I will try to change everthing you told me.

i will tell you if it worked :-)
11  Using Arduino / Project Guidance / Re: Serial & display help please on: May 13, 2011, 03:40:49 pm
The Problem is the flowing if i  remove a "void" anyway wich one it works, if i make it shorter it works very well but if i upload it with all this i showed it rebootes the arduino so i dont know in wich part the problem is.

Very sorry for the big sketch but i have no idea how to show it in a shorter way.
12  Using Arduino / Project Guidance / Serial & display help please on: May 13, 2011, 03:24:24 pm
Hi, i have a big Problem with a Skatch. I use a freeduino and a sparkfun lcd shild.

The skatch worked well befor i included "Serial.print("a");". If the Skatch comes to a line with Serialprint (any wher it is) the arduino restarts.

I have no idea where the problem is, i search now some days but nothing worked.

Would be grat if somone could help me.
Thank you so much.



Code:
#include "LCD_driver.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include "WProgram.h"
#include "HardwareSerial.h"

int value_up;
int value_down;
int value_back;
int value_enter;
int value_analog5;
int value_analog6;

int line0=1;
int line1=1;
int ebene=0;
int contrast = 35;
int contrastbalken =0;
int aktuell=0;
int bewegen=1;

int automatik =0;
int fahren =0;
int licht =0;

int up =0;
int down =1;
int back =2;
int enter =3;
int analog5 =4;
int analog6 =5;

int IO_up =0;
int IO_down =0;
int IO_back =0;
int IO_enter =0;
int IO_analog5 =0;
int IO_analog6 =0;

int changed_up =0;
int changed_down =0;
int changed_back =0;
int changed_enter =0;
int changed_analog5 =0;
int changed_analog6 =0;

int old_up;
int old_down;
int old_back;
int old_enter;
int old_analog5;
int old_analog6;

//************************************************************************
// Main Code
//************************************************************************
void setup()
{
        Serial.begin(9600);
ioinit();           //Initialize I/O
LCDInit();    //Initialize the LCD
        LCDContrast(contrast);
        LCDClear(BLACK);    // Clear LCD to a solid color
        LCDPutStr(" MCC Hohenlohe", 0, 4, YELLOW, BLACK); // Write instructions on display
        
        LCDPutStr("   RC-Remote", 20, 4, BLUE, BLACK);
        LCDPutStr("  Designed and ", 40, 4, BLUE, BLACK);
        LCDPutStr("    Scripted", 56, 4, BLUE, BLACK);
        LCDPutStr("by Dixi & Roman", 72, 10, BLUE, BLACK);
        LCDPutStr("      Mcc-", 94, 4, YELLOW, BLACK);
        LCDPutStr("  Hohenlohe.de", 110, 4, YELLOW, BLACK);
        contrastbalken = contrast;
        delay (3000);
        LCDClear(BLUE);
}
void menu()
{
  
  
  if(ebene == 0)
  {
    
    LCDPutStr(" MCC Hohenlohe", 0, 4, YELLOW, BLUE);
    //LCDPutStr("Automatik", 16, 4, WHITE, BLUE);
    if(line0 == 1)
    {
      LCDPutStr("Automatik", 32, 4, ORANGE, BLUE);
    }
    else
    {
      LCDPutStr("Automatik", 32, 4, WHITE, BLUE);
    }
    if (automatik == 0)
    {
      LCDPutStr("Aus", 32, 85, WHITE, BLUE);
    }
    if (automatik == 1)
    {
      LCDPutStr("Ein", 32, 85, GREEN, BLUE);
    }
    
    if(line0 == 2)
    {
      LCDPutStr("Bewegen", 48, 4, ORANGE, BLUE);
    }    
    else
    {
      LCDPutStr("Bewegen", 48, 4, WHITE, BLUE);
    }
    if (bewegen == 1)
    {
      LCDPutStr("Slow  ", 48, 85, GREEN, BLUE);
    }
    if (bewegen == 2)
    {
      LCDPutStr("Medium", 48, 85, YELLOW, BLUE);
    }
    if (bewegen == 3)
    {
      LCDPutStr("High  ", 48, 85, RED, BLUE);
    }
    
    if(line0 == 3)
    {
      LCDPutStr("Fahren", 64, 4, ORANGE, BLUE);
    }
    else
    {
      LCDPutStr("Fahren", 64, 4, WHITE, BLUE);
    }
    if (fahren == 0)
    {
     LCDPutStr("Aus", 64, 85, WHITE, BLUE);
     }
    if (fahren == 1)
    {
      LCDPutStr("Ein", 64, 85, GREEN, BLUE);
    }
  
    if(line0 == 4)
    {
      LCDPutStr("Licht", 80, 4, ORANGE, BLUE);
    }
    else
    {
      LCDPutStr("Licht", 80, 4, WHITE, BLUE);
    }
    if (licht == 0)
    {
      LCDPutStr("Aus", 80, 85, WHITE, BLUE);
    }
    if (licht == 1)
    {
      LCDPutStr("Ein", 80, 85, GREEN, BLUE);
    }
    
    if(line0 == 5)
    {
      LCDPutStr("Einstellungen >", 96, 4, ORANGE, BLUE);
    }
    else
    {
      LCDPutStr("Einstellungen >", 96, 4, WHITE, BLUE);
    }
    if(line0 == 6)
    {
      LCDPutStr("Display       >", 110, 4, ORANGE, BLUE);
    }
    else
    {
      LCDPutStr("Display       >", 110, 4, WHITE, BLUE);
    }
  }
  if (ebene ==1)
  {
  }
  if(ebene ==2)
  {
    LCDPutStr("    Contrast", 0, 4, YELLOW, BLUE);
    LCDPutStr("+", 28, 6, WHITE, BLUE);
    LCDPutStr("-", 104, 6, WHITE, BLUE);
//    LCDSetRect(32, 4, 118, 16, 1, WHITE);
    LCDSetRect(32, 20, 75, 70, 0, WHITE);
    LCDSetRect(32, 71, 75, 120, 1, RED);
    LCDSetRect(76, 20, 118, 70, 1, GREEN);
    LCDSetRect(76, 70, 118, 120, 1, YELLOW);
    contrastbalken = 108 - contrast;
    LCDSetRect(45, 4, 108, 16, 1, WHITE);
    LCDSetRect(45, 4, contrastbalken, 16, 1, GREEN);
  }
  aktuell =1;
}

void analog()
{
  value_up = analogRead(up);
  value_down = analogRead(down);
  value_back = analogRead(back);
  value_enter = analogRead(enter);
  value_analog5 = analogRead(analog5);
  value_analog6 = analogRead(analog6);
  
  if (value_up >= 500)
  {
    IO_up = 1;
  }
  else
  {
    IO_up = 0;
  }
  if (value_down >= 500)
  {
    IO_down = 1;
  }
  else
  {
    IO_down = 0;
  }
  if (value_back >= 500)
  {
    IO_back = 1;
  }
  else
  {
    IO_back = 0;
  }
  if (value_enter >= 500)
  {
    IO_enter = 1;
  }
  else
  {
    IO_enter = 0;
  }
  if (value_analog5 >= 500)
  {
    IO_analog5 = 1;
  }
  else
  {
    IO_analog5 = 0;
  }
  if (value_analog6 >= 500)
  {
    IO_analog6 = 1;
  }
  else
  {
    IO_analog6 = 0;
  }
  //delay(100);
}
void changed()
{
  
  
  changed_up =0;
  changed_down =0;
  changed_back =0;
  changed_enter =0;
  changed_analog5 =0;
  changed_analog6 =0;
  
  if (old_up == 0 && IO_up == 1)    // taste "up"
  {
    aktuell =0;
    changed_up = 1;
    if(ebene==0)
    {
      if(line0 >= 2 )
      {
        line0--;
      }
      else
      if (line0 == 1)
      {
        line0 =6;
      }
    }
    if(ebene==2)
    {
      if(contrast <=55)
      {
        contrast++;
        LCDContrast(contrast);
        contrastbalken = 108 - contrast;
        LCDSetRect(45, 4, 108, 16, 1, WHITE);
        LCDSetRect(45, 4, contrastbalken, 16, 1, GREEN);
      }
    }
      
  }
  if (old_down == 0 && IO_down == 1)  // taste "down"
  {
    aktuell =0;
    changed_down = 1;
    if(ebene ==0)
    {
      if(line0 <= 5 )
      {
        line0++;
      }
      else
      if(line0 == 6)
      {
          line0 = 1;
      }
    }
    if(ebene==2)
    {
      if(contrast >= 1)
      {
        contrast--;
        LCDContrast(contrast);
        contrastbalken = 108 - contrast;
        LCDSetRect(45, 4, 108, 16, 1, WHITE);
        LCDSetRect(45, 4, contrastbalken, 16, 1, GREEN);
      }
    }
  }
  if (old_back == 0 && IO_back == 1)    // taste "back"
  {
    aktuell=0;
    changed_back = 1;
    ebene = 0;
    LCDClear(BLUE);
  }
  if (old_enter == 0 && IO_enter == 1)    //taste "enter"
  {
    aktuell=0;
    changed_enter = 1;
    
    if( ebene == 0)
    {
      if (line0 == 1)
      {
       if (automatik == 0)
       {
         automatik = 1;
       }
       else
       if (automatik ==1)
       {
         automatik = 0;
       }
      }
      if (line0 ==2)
      {
        if (bewegen == 1)
        {
          bewegen++;
        }
        else
        if (bewegen == 2)
        {
          bewegen++;
        }
        else
        if (bewegen == 3)
        {
          bewegen=1;
        }      
      }
      if (line0 == 3)
      {
        if(fahren == 0)
        {
          fahren++;
        }
        else
        if (fahren == 1)
        {
          fahren --;
        }
      }
      if(line0 == 4)
      {
        if(licht == 0)
        {
          licht++;
        }
        else
        if(licht == 1)
        {
          licht--;
        }
      }
      if(line0 == 5)
      {
        ebene = 1;
      }
      if(line0 == 6)
      {
        ebene = 2;
      }
    }
    if(ebene == 1)
    {
      LCDClear(BLUE);
    }
    if(ebene == 2)
    {
      LCDClear(BLUE);
      
    }
      
  }
  
  
  old_up = IO_up;
  old_down = IO_down;
  old_back = IO_back;
  old_enter = IO_enter;
  old_analog5 = IO_analog5;
  old_analog6 = IO_analog6;
//  delay(100);
  
}
void loop()
{
  
  analog();
  changed();
  if (aktuell == 0)
  {
    menu();
  }
   Serial.print("a");   [font=Verdana][color=red]//the arduino restarts if it comes to this line[/color][/font]
}
Pages: [1]