CodeBlocks Arduino IDE - real C++ IDE for Arduino development (rev.20130827)

Hello Stanley,

May I ask you if we can use scanf() and main() with CodeBlocks for Arduino ?

I want to use my keypad (4 rows and 3 columns ) to put values on variable .

The problem with the loop() is I can't properly create a menu like this :

MENU :

  1. Modification des consignes
  2. Réglage manuelle des ventilateurs

Température actuelle : 15.00 °C
Humidité actuelle : 60.00 %RH

Température (CONSIGNE) : 20.00°C
Humidité (CONSIGNE) : 50.00%RH

T° extérieure) : 19.00°C
Humidité (extérieure) : 55.00%RH

Votre choix : _

If I choose 1 we have this :

MODIFICATIONS DES CONSIGNES :

  1. Température

  2. Humidité

Votre choix : _

Thank you to answer me :).

EDIT : Once I finished to put valus for temprature ,and put "1" I return to my MENU

MODIFICATIONS DES CONSIGNES :

  1. Température

  2. Humidité

Votre choix : 1

Nouvelle consigne pour la température (° C): 30.00

Voulez-vous retourner au MENU ?
Votre choix ( 1.(oui) / 2.(non) ): 1

MENU :

  1. Modification des consignes
  2. Réglage manuelle des ventilateurs

Température actuelle : 15.00 °C
Humidité actuelle : 60.00 %RH

Température (CONSIGNE) : 30.00°C
Humidité (CONSIGNE) : 50.00%RH

T° extérieure) : 19.00°C
Humidité (extérieure) : 55.00%RH

Votre choix : _