![]() ![]() PinMode(leg, OUTPUT) setPwmFrequency(leg,8) analogWrite(leg, offset) * o The divisors available p1on pins 3 and 11 are: 1, 8, 32, 64, * o The divisors available on pins 5, 6, 9 and 10 are: 1, 8, 64, * o The base frequency for pins 5 and 6 is 62500 Hz. * o The base frequency for pins 3, 9, 10, and 11 is 31250 Hz. put your main code here, to run repeatedly:ĮthernetClient client = server.available() put your setup code here, to run once: Everything I have before setup is importing libraries and variables like my mac, ip, placeholders for output, pwm, etc. Maybe I just haven't been reading the right forums or articles, but if anyone could point me in the right direction that would be much appreciated.ĮDIT: So the problem is probably with my setup or code, I'll put it down here. I know that the Wire library enables the internals by default, but how do I edit the library or disable the pullups in my sketch? I want to switch to two 4.7k resistors but I can't figure out how to disable the internal ones. I'm trying to enable I2C between a leonardo and an uno, but I think the i2c bus is slowing down considerably because of the internal pullups. The pages I've been reading never explicity state how. How do you do this? I've been digging around and I can see that I should do this and supply my own external pull up resistors but I don't know exactly how to disable them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |