Pages: [1]   Go Down
Author Topic: Noob Question Bytes and Unsigned Chars  (Read 551 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 13
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What is the difference between a Byte and a unsigned Char?
« Last Edit: August 21, 2009, 11:36:55 pm by dcrackel » Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 163
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

By and large no difference. Some subtleties may arise if you are doing object oriented stuff and calling a method on an object which has overloads for both but... Beyond that nothing comes to mind.
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 77
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In ./hardware/cores/arduino/wiring.h:
typedef uint8_t byte;

Personally I prefer to just use uint8_t.
« Last Edit: August 23, 2009, 03:03:57 am by rFree » Logged

Pages: [1]   Go Up
Jump to: