Recent Posts

Pages: 1 ... 8 9 [10]
91
Digispark (Original) Support / digispark ds18b20 library
« Last post by ajp on June 27, 2019, 12:48:57 am »
The link for the DS18B20 temperature shield (http://digistump.com/wiki/digispark/tutorials/temp)
talks about programming
Programming:
With the newest version of the Digispark Arduino IDE goto Examples→OneWire→Digispark Example
My version of the IDE doesn't have this.

Is the software available? What is the best onewire software for the digispark?


92
Off-Topic / Hello to everyone
« Last post by ruteen101 on June 22, 2019, 04:11:17 am »
Hey guys I'm Rut
กัญชา
Just want say I'm happy to join this community. I read many post before decide to sign up.
Many post were helpful for me.
420
Thanks a lot

93
Is there a chance you're running SNORT or some other IDS on your perimeter?

I've run into problems like this with other boards - turned out my IDS was blocking them. Adjusted some of the lists and poof - it's all god again.

Not that I know of. But you are right, it seems something is blocking my access to this particular file. Intriguing...
94


I found a site where they talk about manually installing a new board - https://forum.arduino.cc/index.php?topic=393434.0. Maybe you could figure it out from there.

Thanks for this, I will check it out!
95
Digispark (Original) Support / Re: Digispark with webusb
« Last post by beckmx on June 21, 2019, 09:05:21 am »
Well that's what I don't know, but that's my suspicion, and I didnt want to use a normal arduino, I wanted to prevent spending the double the price
96
Digispark (Original) Support / Re: Digispark -1 error when uploading sketch
« Last post by granzeier on June 21, 2019, 03:21:24 am »
I have also run into this error. After much searching on the Internet, I have found no answer. It seems to be on the Digispark side, because when I switch to another Digispark, it works. It may be that re-flashing the bootloader will fix it, but I have not tried that yet (lazy, sorry - however, pretty soon my pile of dead Digisparks will be big enough that I will try that.  :P )
97
Digispark (Original) Support / Re: Digispark with webusb
« Last post by granzeier on June 21, 2019, 03:14:25 am »
Ok; I have to admit that I am stumped.

Have you tried with an ATMega32, or another Arduino (Uno or Mega maybe)?

I have also discovered that some of these libraries were made when the webusb specification came out when aparently chrome was able to freely connect to HID, then they changed into connecting only to "custom devices" and those devices require to set up a propper "interface" for in and out communication.
This sounds like the specs have changed. Perhaps they made it so that the WebUSB libraries cannot work without major rewrite?
98
Digispark (Original) Support / Digispark -1 error when uploading sketch
« Last post by mitko29 on June 19, 2019, 11:19:54 pm »
Hello guy I am on mac os with arduino 1.6.5r5 and I am trying to upload a blank sketch to the core but I always receive the error :
> Starting to upload ...
writing: 70% complete
writing: 75% complete
writing: 80% complete
> Starting the user app ...
>> Run error -1 has occured ...
>> Please unplug the device and restart the program.

Any idea why that maybe because so far I had never problem uploading to the chip
99
Digispark (Original) Support / Re: Digispark with webusb
« Last post by beckmx on June 19, 2019, 09:29:17 am »
So far I have tried these libraries:
- DigiCDC
- DigiUSB

Which is the one you suggested.

For the DigiUSB I have modified the library files for the USB device class, vendor, product-id and interfaceClass inside -usbconfig.h-, I have managed to get it only "recognized" but I cant manage to send data from JS into the webusb. Apparently the interface in and out are not properly created and is missing the "in".

The code I use is from the blink example:
Code: [Select]
#define USB_CFG_DEVICE_NAME     'D','i','g','i','B','l','i','n','k'
#define USB_CFG_DEVICE_NAME_LEN 9
#include <DigiUSB.h>
byte in = 0;
int Blue = 0;
int Red = 0;
int Green = 0;

int next = 0;

void setup() {
    DigiUSB.begin();
    pinMode(0,OUTPUT);
    pinMode(1,OUTPUT);
    pinMode(2,OUTPUT);
}


void loop() {
  setBlue();
      DigiUSB.refresh();
      setBlue();
     if (DigiUSB.available() > 0) {
       in = 0;
       
       in = DigiUSB.read();
       if (next == 0){
         if(in == 115){
           next = 1;
           DigiUSB.println("Start");
         }
       }
       else if (next == 1){
            Red = in;
            DigiUSB.print("Red ");
            DigiUSB.println(in,DEC);
            next = 2;
       }
       else if (next == 2){
            Green = in;
            DigiUSB.print("Green ");
            DigiUSB.println(in,DEC);
            next = 3;
       }
       else if (next == 3){
            Blue = in;
            DigiUSB.print("Blue ");
            DigiUSB.println(in,DEC);
            next = 0;
       }


       
       
     }
     

    analogWrite(0,Red);
    analogWrite(1,Green);
     setBlue();

     
   
}

void setBlue(){
    if(Blue == 0){
      digitalWrite(2,LOW);
      return;
    }
    else if(Blue == 255){
      digitalWrite(2,HIGH);
      return;
    }
    // On period 
    for (int x=0;x<Blue;x++){
    digitalWrite(2,HIGH);
    }
   
    // Off period
   
    for(int x=0;x<(255-Blue);x++){
    digitalWrite(2,LOW);
    }
 
}


I have also discovered that some of these libraries were made when the webusb specification came out when aparently chrome was able to freely connect to HID, then they changed into connecting only to "custom devices" and those devices require to set up a propper "interface" for in and out communication. According to the arduino specification for atmega32u4, it generates 3 interfaces, 2 of which have in and out controls. There is where I got stuck, I don't know how exactly migrate the VUSB to support these in out sections.
100
Digispark (Original) Support / Re: Digispark with webusb
« Last post by granzeier on June 19, 2019, 04:06:14 am »
We will need a bit more information to be able to help you.

How far were you able to get? Did you try any of the examples from GitHub (https://github.com/beigenmann/DigisparkWebUSB/tree/master/examples)? What happened? What error messages (if any) did you receive?

What is your program (code) and did it even compile?
Pages: 1 ... 8 9 [10]