Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Simple casting winavr

2008-01-24 by Bryan Martin

I am attempting to move to C (winavr) from bascom for programming but 
getting hung up on some fundamentals.

Given the following

unsigned char byte_in = 0xA;

I need to print the decimal value to UART so I want to see 10.  Similar to 
printf("%d", byte_in).  Lord I hope this makes sense.

Poor planning on your part does not constitute an emergency on my part.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.