The South Australian Microprocessor Group Inc.

Established 1979

Menu

Skip to content
  • Home
  • Tutorials
    • Pine64 driven from PC
    • Feasibility study for 3D printer project
    • Arduino IDE and the fundamentals of C
    • Atmel 8 bit AVR CPUs
    • SD memory cards
    • Pi + Arduino Shields
    • SAMG WordPress Site
  • Single Board PC
    • ESP8266 & ESP32 Wi-Fi devices
    • Pine64
    • Arduino
      • Fuse settings in Atmel 328P
      • 328P controlling LCD display
      • All things C code
    • Raspberry Pi
    • Udoo
    • PIC microcontroller
  • Projects
  • Meetings
  • Contact
  • Archive- Home

All things C code

As introduce by Cliff Shirra in his presentation on the 12th May 2017 I have included a series of links on using Library Functions and Macros.

Arduino Library Functions & Macros
Is it a good idea to turn those macros into functions?
It depends.
Macros are fast, but lack type checking.
Functions offer type checking but incur overhead.
Whether one is better than the other depends on your priorities.

Discussion on all things Macro

Be careful with the Pre-processor:

The South Australian Microprocessor Group Inc. © 1976 - 2024 All Rights Reserved