Recent Posts

Pages: 1 ... 8 9 [10]
91
Digispark (Original) Support / Re: "Unknown Device"
« Last post by Citrusl on November 04, 2019, 05:27:33 am »
Day two:

Tryed to test some Drivers applications:

 -Driver Easy Setup: (Waste of time).
 -Zadig-2.4: (Some ghost installation, doesnt work).
 -Using manually setup lib-32 (Same as Zadig).

Another manual actions:

 -I tried to reinstall everything.
 -Turn power USB OFF on Windows power options.
 -Tryed all the USB ports.
 -Tryed disconecting all the other devices. First to plug in Digispark.
 -Tryed in another PC with Windows 10 where this time Digispark was connected and disconnected in a loop as an unknown device.

Im searching for more ideas...
If i found something i will share it here, just for all the people like me who purchased this product with all the illusion of creating new programmable projects.

92
Digispark (Original) Support / "Unknown Device"
« Last post by Citrusl on November 03, 2019, 01:15:08 pm »
I have four Digispark USB devices that cant be recognized ("unknown Device").
My PC has Windows 7 Ultimate 64 bits.

What i have done?

I tryed runing "DPinst64.exe" seemingly without problems, also using "Install Drivers.exe" option, running "Post install.bat", etc.
Even when i choose the folder "Digistump Drivers" to update the .inf driver, a message appears telling "Driver was already installed for this device" (showing Unkonwn Device with any information)

I saw the videos on Youtube with any success.

Please help if a solution was released for this matter.
93
Digispark (Original) Support / Re: Digimouse.h and Digikeyboard.h in same sketch
« Last post by granzeier on November 01, 2019, 02:20:40 am »
Good point. I had not thought about that - do you know of any library which combines both?
94
Digispark (Original) Support / Re: Digimouse.h and Digikeyboard.h in same sketch
« Last post by rubberduck on October 31, 2019, 08:20:29 am »
I don't think that this will work as every one of the both libs contains a full v-usb which uses the USB Pins exclusively. You might need to create a new combo lib. Maybe this could work but i'm not sure if v-usb supports this.
95
My bunch of 5 'rev 3' clones had the P5 NOT redefined as useable pin so that a normal ISP Programmer will work on them. P5 = reset here.
96
Digispark (Original) Support / Re: DigiMouse causes too much noise
« Last post by granzeier on October 31, 2019, 04:21:22 am »
Nice work - thanks.
97
Digispark (Original) Support / Re: Digimouse.h and Digikeyboard.h in same sketch
« Last post by granzeier on October 31, 2019, 04:19:23 am »
I think that you are correct here. I believe that you will need both libraries.
98
Digispark (Original) Support / DigiMouse causes too much noise
« Last post by rubberduck on October 31, 2019, 04:07:44 am »
Hi,

I wrote a Mouse Jiggler with Attiny85 Board with a switch to (temporarly) disable it but i noticed that disabling had no effect.
The Screensaver did not work as long as the stick was attached.

Then i looked at the USB Traffic with the Device Monitoring Studio and saw that there was an update every few ms. Also the Tool "Idle Clock" showed that the maximum idle time was ~2-3 ms.

I searched around in the Library and found the causing function:
Code: [Select]
void update() {
  usbPoll();

  // instead of above code, use millis arduino system to enforce minimum reporting frequency
  unsigned long time_since_last_report = millis() - last_report_time;
  if (time_since_last_report >= (idle_rate * 4 /* in units of 4ms - usb spec stuff */)) {
    last_report_time += idle_rate * 4;
    must_report = 1;
  }

  // if the report has changed, try force an update anyway
  if (memcmp(last_built_report, last_sent_report, REPORT_SIZE)) {
    must_report = 1;
  }

  // if we want to send a report, signal the host computer to ask us for it with a usb 'interrupt'
  if (must_report) {
    if (usbInterruptIsReady()) {
      must_report = 0;
      buildReport(reportBuffer); // put data into reportBuffer
      clearMove(); // clear deltas
      usbSetInterrupt(reportBuffer, REPORT_SIZE);
    }
  }
}
I copied this function into my sketch with a new name and removed the following part:
Code: [Select]
  // instead of above code, use millis arduino system to enforce minimum reporting frequency
  unsigned long time_since_last_report = millis() - last_report_time;
  if (time_since_last_report >= (idle_rate * 4 /* in units of 4ms - usb spec stuff */)) {
    last_report_time += idle_rate * 4;
    must_report = 1;
  }
This code piece caused Updates with no change which are not sent by a normal Mouse and triggered the Idle-Timer-Reset
When removing this code part the mouse-jiggler can be switched off and on as expected, the usb device keeps connected, i think this is because of the usbPoll(); call at the start of the function. The Jiggles are visible as really small movements every 5-15 Seconds (i'm using random() for this time)

Find attached the complete MouseJiggler including the workaround. It also supports a patched Bootloader which only gets activated on button press. Pressing the Button on Pin P0 for more than 5 Seconds will reset into bootloader and if the button is still pressed on the reset time then the bootloader is active.
99
Digispark (Original) Support / Digimouse.h and Digikeyboard.h in same sketch
« Last post by crdit on October 30, 2019, 10:12:37 am »
I am having some issues trying to control the mouse and keyboard in the same sketch. I thought I would need to use both of these libraries because I did not see commands in their syntax files that controlled the other.
100
Digispark (Original) Support / Bad CPU type in executable
« Last post by Netenabled on October 29, 2019, 07:30:02 pm »
Can anybody help, I am getting the following error when trying to compile and upload my code:

fork/exec /Users/XXXXX/Library/Arduino15/packages/arduino/tools/avr-gcc/4.8.1-arduino5/bin/avr-g++: bad CPU type in executable
Error compiling for board Digispark (Default - 16.5mhz).

This is running on a Macbook Pro 2015 with macOs Catalina 10.15
Pages: 1 ... 8 9 [10]