37 const uint32_t
FREQ = 10000;
59 pwOut <<
"Welcome to the MAX6675 demo!\n";
64 pwOut.
printf(
"Temp: %u.%uC\n", data >> 2, (data & 0x3) * 25);
65 waitcnt(CLKFREQ / 2 + CNT);
const PropWare::Port::Mask SCLK
const PropWare::Port::Mask CS
const PropWare::Port::Mask MOSI
const PropWare::Printer pwOut
Most common use of printing in PropWare applications (not thread safe; see PropWare::pwSyncOut for mu...
void printf(const char fmt[], const T first, const Targs...remaining) const
Similar in functionality to the C-standard function printf.
K-type thermocouple amplifier driver using SPI communication for the Parallax Propeller.
void start(const Port::Mask mosi, const Port::Mask miso, const Port::Mask sclk, const Port::Mask cs)
Initialize communication with an MAX6675 device.
const PropWare::Port::Mask MISO
uint16_t read()
Read data in fixed-point form.
SPI serial communications library; Core functionality comes from a dedicated assembly cog...
void always_set_spi_mode(const bool alwaysSetMode)
Choose whether to always set the SPI mode and bitmode before reading or writing to the chip; Useful w...
static SPI * get_instance()
Best way to use SPI is through here, where you can get a shared instance of the SPI module (not threa...