#avr | Logs for 2016-08-28

Back
[02:04:58] <dgriffi> is there a simple audio synthesizer library for AVR?
[02:24:28] <eszett> dont know
[02:48:58] <rue_shop3> synth?
[02:49:00] <rue_shop3> huh
[04:20:05] <dgriffi> rue_shop3: yeah. something I could use to play two square or sine wavesa and mix them
[04:22:09] <gjm> AVR
[04:22:15] <gjm> Sine wave.
[04:22:27] <gjm> Heheā€¦
[04:44:06] <dgriffi> ya... is there such a library? I know there's one for arduino
[05:42:14] <cehteh> hmm disconnected :D
[05:47:05] <Thrashbarg> yay
[08:26:03] <_ami_> finally i completed by usb-led device and its linux device driver. its utter satisfying :) https://github.com/amitesh-singh/ldd/tree/master/usb/usb-blink-led
[08:26:11] <_ami_> my*
[08:32:32] <aczid> congrats :)
[09:25:39] <Chillum> I have never made a usb driver, I have always just used a serial bridge chip
[09:25:44] <Chillum> sounds fun
[11:47:31] <_ami_> aczid: thanks :)
[13:16:09] <rue_house> dgriffi, you just want a sin wave?
[13:16:20] <rue_house> fixed freq? about 60Hz?
[13:16:30] <rue_house> how many samples/sec?
[13:17:01] <rue_house> about 15.36k samples/sec? at about 8 bit resolution?
[16:00:14] <boxfire> So I am trying to update this I2C library to work in avr-libc 2.0.0 but its entirely unclear why its not working and I am starting to go mad
[16:01:40] <boxfire> this guy's library: http://dsscircuits.com/index.php/articles/66-arduino-i2c-master-library
[16:02:52] <boxfire> does not work on a atmega2560 in a newer toolchain. The pullups are set, the status registers look fine, but when I open a write to address 0x3E my protocol sniffer is showing a write to 0x7F unacknowledged of course
[16:04:19] <boxfire> If I use the same library in a 1.8.1 avr-libc with gcc 4.9.2 everything works just fine. I am trying to track down what changed
[16:41:17] <boxfire> ugh I have figured out what was going on. The code that read the status register before was bugged. Now it works, so a library written on bugs is broken
[16:41:55] <Lambda_Aurigae> happens all the time.
[16:42:15] <boxfire> yeah, its going to take all day to fix all those status register reads. FML
[16:43:24] <Lambda_Aurigae> always understand your code.
[16:43:30] <Lambda_Aurigae> specially the code you didn't write yourself.
[17:09:34] <boxfire> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71372
[17:09:42] <boxfire> wonderful compiler bugs. They make life fun
[18:12:08] <Emil> boxfire: How so?
[18:20:01] <Lambda_Aurigae> I think there is the ever so slight hint of sarcasm in there.
[18:47:12] <boxfire> Emil: I just pulled my hair out for 4 hours because the compiler was spuriously folding call graph trees with volatile reads
[18:47:24] <boxfire> 'fun'
[19:31:32] <Casper> suicide squad... I wouln't give more than 4/10
[19:43:18] <Emil> boxfire: oh, sorry, forgot the context. Why is it going to take all day to fix all those register reads?
[19:43:49] <Emil> Were it code I would have written it would be simply fixed with sed ; )