ATtiny85 Template Code
Code snippets for the ATtiny85
 All Files Functions Variables Typedefs Enumerations Enumerator Macros
utility.c File Reference
#include "utility.h"
Include dependency graph for utility.c:

Go to the source code of this file.

Macros

#define WAIT_INNER   (F_CPU / 6000)
 

Functions

void wait (uint16_t millis)
 
char hexChar (uint8_t value)
 

Macro Definition Documentation

#define WAIT_INNER   (F_CPU / 6000)

Definition at line 12 of file utility.c.

Function Documentation

char hexChar ( uint8_t  value)

Convert the low four bits of a byte value into an upper case hex digit.

Parameters
valuethe value to convert
Returns
the ASCII code for the appropriate hex digit.

Definition at line 37 of file utility.c.

Here is the caller graph for this function:

void wait ( uint16_t  millis)

An inaccurate delay function

This function will delay for the given number of milliseconds. This is not an accurate delay (interrupt activity will interfere with the timing and it uses instruction timing approximations to consume the time) but should be close enough for many purposes without having to revert to a timer interrupt.

Definition at line 21 of file utility.c.