Discussion Title | Created date |
---|---|
Passing a va_list to snprintf Hi, I would like to consolidate these lines into one function: uint8_t n = 200; char buff[100]; snprintf(buff, sizeof(buff), "\n\r%s this is a number: %d", "Hello", n);... |
Sunday, 1 May 2016 - 20:16 |
Wire Library and how it sets the slave address I've been working with a simple i2c library (Peter Fleury). I added the following method to simply check if an address is valid on the bus. uint8_t i2cScan(uint8_t address... |
Sunday, 1 May 2016 - 14:43 |
AS7 - Missing Rename (refractoring) options This week I finally got around to updating my AS7 to Version: 7.0.790. There use to be an option when I right click on a variable or function, I could rename it. The renaming... |
Sunday, 24 April 2016 - 11:14 |
AS7 - Defined Symbols - When changing a Device in AS7, AS7 will set the -mmcu argument for the compiler. For example, if I choose the Atmega2560, AS7 will add: -mmcu=atmega2560This is a nice... |
Saturday, 23 April 2016 - 12:43 |
SPI - Sending multiple commands and data Hi, I am trying to learn how to use SPI with my NRF24L01 RF Module. I am slowly making progress and have a question in regards to sending multiple commands and multiple... |
Saturday, 9 April 2016 - 12:17 |
Nrf24L01 configuring the registers I am working on a Nrf24L01 project. To get started I just want to send and receive a few bytes of data. Before I post a "Its not working" post, I want to try to narrow down the... |
Friday, 8 April 2016 - 11:05 |
get values from a pointer to an array I have the following array: uint8_t data[5] = {0xD7,0xD7,0xD7,0xD7,0xD7}; I have a method that excepts a pointer to an array: void doSomething(uint8_t* data... |
Sunday, 3 April 2016 - 17:12 |
Setting value for SPDR – SPI Data Register (ATMega 2560) Hi, I have a simple SPI program, which should set the value of SPDR (SPI Data Register) to 0x08 (8). #include <avr/io.h> #include <util/delay.h> #define... |
Monday, 28 March 2016 - 00:57 |
Help selecting switch in Eagle I am using Eagle Cad. I am having trouble finding a Reset switch for my schematic. The switch will always pass current until pressed. I believe the nomenclature is a SPST... |
Saturday, 19 March 2016 - 15:07 |
Building a Standalone Programmer - Setting the fuses Adafruit has a nice tutorial on building a standalone programmer. This is adopted from Optiloader by Bill Westfield. In the Adafruit version there is a note on burning fuses:... |
Sunday, 28 February 2016 - 14:46 |
Can not program Fuses - One of more registers differs [SOLVED] I have an Atmega328p chip which I am unable to program via ISP. Not sure why as I pulled this chip from my stash. So I throw it on my STK500 and check the fuses via HVPP. I see... |
Sunday, 21 February 2016 - 22:41 |
UART and Interupt issue [Solved] Hi, I have a simple example of triggering an interrupt when I receive UART data. The problem is the interrupt triggers but never returns. Not sure what I am going wrong. I am... |
Saturday, 20 February 2016 - 14:06 |