Finding the great steps to make a library hints that it's probably documented well. I think the Google Code layout makes it look less documented than it is. With my display working I'll have a nice way to see that it's working properly.īefore doing that, though, I'm going to read through the u8glib page a bit more. Next I'll probably work on connecting the GPS to the AVR and parsing the data that it gives me. I'll probably make the changes that display the '65' like I had previously working with the Arduino environment, but that should be quick. Now I need to think through what my next step is. A few guesses on how to do things and it all works out just like it should? I'd like to take credit for getting it all to work, but I think it was just luck. I suspect from now on small advances will require tons of work. So I think I've pretty much used up all the good luck on the project right there. I programmed the board (after soldering an ISP header to the breadboard shield), and it worked! I didn't have time over that lunch break to program it, so it had to wait until last night. Deleting all of the library files from that (just keeping the hello_world.c file), I added the libu8glib.a as a library (this was just a guess). I built the project as it was, and then went back to the solution I used originally (where I added all the library files I needed individually to the project). I'd like to reuse this library for multiple projects and don't want to have to rebuild it each time I have a different Atmel Studio solution (although you do have to define F_CPU, so you'd need to rebuild it if you were using it on a board that ran at a different frequency). I followed those instructions for building a static library, but stopped at the Create Example Project part. Under the Install section, it links to the instructions for the m2tklib. The u8glib wiki has a page about using with the AVR. I revisited that, looking at how I could use the u8glib as an actual library. The width of the bitmap is cnt*8.In the previous log I mentioned that I had gotten the test Hello World file from the u8glib library to compile in Atmel Studio, but I had to include all the various library files in the project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |