Quero assear o blink pelo pc

Boa noite .uso seus aplicativo e estou gostando muito mas na minha casa uso meu arduino também nos pc . hoje estou usando uma biblioteca minha junto com a suas instalado no arduino funciona mas quando a internet cai tenho que ir la e resetar o arduino manualmente gostaria de saber se à posibilidade de usar um software pc

Please use English if possible. I did try Google Translate, but it did not make any more sense :slight_smile:

2 Likes

Good night. I use your app and I'm really enjoying it but in my house I use my arduino also in the pc. Today I am using a library of mine along with its installed in arduino works but when the internet drops I have to go la and reset the arduino manually I would like to know if the possibility of using a pc software

We don’t have a PC software yet.

Meanwhile you can use an emulator as Droid4x for example. It works like a charm.

You know the arduino library.
Because tonight I realized that when the light goes away and when I order to record the library of the Arduino along with his he shows error in my library but he continues saving
/*
AllAvailPins.ino - Expose All Available Pins on Arduino UNO for EthernetSup Library.
Created by Carlos Magno, Jan 19, 2016.
Released into the public domain.
*/
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet.h>
#include “EthernetSup.h”
#include <BlynkSimpleEthernet.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth = “*****************************”;

byte mac = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED };
byte ip = { 192, 168, 0, 99 };

// Todas as portas disponiveis do ATMega328p
// Exceto Serial e ISP
const char porta1 = 23;
const char porta2 = 25;
const char porta3 = 27;
const char porta4 = 29;
const char porta5 = 31;
const char porta6 = 33;
const char portaFechadura = 35;
const char portaGaragem = 37;
const char porta9 = 39;
const char porta10 = 40;
const char porta11 = 41;
const char porta12 = 42;
const char porta13 = 43;
const char porta14 = 47;

EthernetSup sup;

void setup()
{

Serial.begin(9600);
Blynk.begin(auth);
// You can also specify server.
// For more options, see BoardsAndShields/Arduino_Ethernet_Manual example
//Blynk.begin(auth, “your_server.com”, 8442);
//Blynk.begin(auth, IPAddress(192,168,0,4), 8442);
// Iniciando Ethernet
sup.begin(mac, ip);

// Configurando portas dos botoes
pinMode(porta1, OUTPUT);
pinMode(porta2, OUTPUT);
pinMode(porta3, OUTPUT);
pinMode(porta4, OUTPUT);
pinMode(porta5, OUTPUT);
pinMode(porta6, OUTPUT);
pinMode(portaFechadura, OUTPUT);
pinMode(portaGaragem, OUTPUT);
pinMode(porta9, OUTPUT);
pinMode(porta10, OUTPUT);
pinMode(porta11, OUTPUT);
pinMode(porta12, OUTPUT);
pinMode(porta13, OUTPUT);
pinMode(porta14, OUTPUT);

// Estado incial das portas
digitalWrite(porta1, LOW);
digitalWrite(porta2, LOW);
digitalWrite(porta3, LOW);
digitalWrite(porta4, LOW);
digitalWrite(porta5, LOW);
digitalWrite(porta6, LOW);
digitalWrite(portaFechadura, LOW);
digitalWrite(portaGaragem, LOW);
digitalWrite(porta9, LOW);
digitalWrite(porta10, LOW);
digitalWrite(porta11, LOW);
digitalWrite(porta12, LOW);
digitalWrite(porta13, LOW);
digitalWrite(porta14, LOW);

sup.addButton(porta1, “Luz da varanda 6”, ONOFF_BUTTON);
sup.addButton(porta2, “Luz da varanda A”, ONOFF_BUTTON);
sup.addButton(porta3, "Luz do muro ", ONOFF_BUTTON);
sup.addButton(porta4, “Luz da garagem”, ONOFF_BUTTON);
sup.addButton(porta5, "Luz da cobertura “, ONOFF_BUTTON);
sup.addButton(porta6, “Cerca eletrica”, PULSE_BUTTON);
sup.addButton(portaFechadura, “Saida da av A”, PULSE_BUTTON);
sup.addButton(portaGaragem, “Portao garagem”, PULSE_BUTTON);
sup.addButton(porta9, “Luz do muro rua 6”, ONOFF_BUTTON);
sup.addButton(porta10, “Luz da cozinha”, ONOFF_BUTTON);
sup.addButton(porta11, “cozinha a lenha”, ONOFF_BUTTON);
sup.addButton(porta12, “Luz da sala”, ONOFF_BUTTON);
sup.addButton(porta13, “Luz da copa”, ONOFF_BUTTON);
sup.addButton(porta14, " Area de tanque”, ONOFF_BUTTON);

}

void loop()
{
// Load HTML
Blynk.run();
if (sup.available())
{
// Verifica se algum botao foi pressionado
int lastButton = sup.getLastClickedButton();

// Executa o comando conforme o botao clicado
switch (lastButton)
{
  case porta1:
    digitalWrite(porta1, sup.getButtonState(lastButton));
    break;
  case porta2:
    digitalWrite(porta2, sup.getButtonState(lastButton));
    break;
  case porta3:
    digitalWrite(porta3, sup.getButtonState(lastButton));
    break;
  case porta4:
    digitalWrite(porta4, sup.getButtonState(lastButton));
    break;
  case porta5:
    digitalWrite(porta5, sup.getButtonState(lastButton));
    break;
  case porta6:
    digitalWrite(porta6, HIGH);
    delay(300);
    digitalWrite(porta6, LOW);
    break;
  case portaFechadura:
    digitalWrite(portaFechadura, HIGH);
    delay(500);
    digitalWrite(portaFechadura, LOW);
    break;
  case portaGaragem:
    digitalWrite(portaGaragem, HIGH);
    delay(500);
    digitalWrite(portaGaragem, LOW);
    break;
  case porta9:
    digitalWrite(porta9, sup.getButtonState(lastButton));
    break;
  case porta10:
    digitalWrite(porta10, sup.getButtonState(lastButton));
    break;
  case porta11:
    digitalWrite(porta11, sup.getButtonState(lastButton));
    break;
  case porta12:
    digitalWrite(porta12, sup.getButtonState(lastButton));
    break;
  case porta13:
    digitalWrite(porta13, sup.getButtonState(lastButton));
    break;
  case porta14:
    digitalWrite(porta14, sup.getButtonState(lastButton));
    break;
  default:
    break;
}

// Novo metodo para limpar estado
// do botao somente no final
sup.clearButtonIdx();

}

// Delay
delay(10);
}

You know the arduino library.
Because tonight I realized that when the light goes away and when I order to record the library of the Arduino along with his he shows error in my library but he continues saving

Code snippets should be formatted. Please edit your initial post:

How to do that:


 ``` cpp <--put 3 backticks BEFORE your code starts  ("cpp" means C++ language) 

   //Put your code here
   //..................
   //..................

 ``` <--insert 3 backticks AFTER your code

**This makes your code readable and with highlighted syntax, like this

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

//comment goes here 
void helloWorld() { 
   String message =  "hello" + "world"; 
}