Updating example to use float instead of uint8_t.