The Sources
directory contains the Swift source files that make up the SwiftyBones framework and the SwiftyBones components framework. The four files that make up the SwiftyBones framework are:
SwiftyBonesCommon.swift
: This file contains common code that is required for interacting with PWM, analog and digital GPIO pinsSwiftyBonesDigitalGPIO.swift
: This file contains the code for interacting with the digital GPIO pinsSwiftyBonesAnalog.swift
: This file contains the code for interacting with the Analog IN pinsSwiftyBonesPWM.swift
: This file contains the code for interacting with the PWM pins
SwiftyBones is designed to be modular, so you only need to include the files that contain the functionality you need. The only file that is required for all projects that uses the SwiftyBones framework is the SwiftyBonesCommon.swift
file, because the other files rely on it. This means, as an example, if we are only going to use the GPIO pins in a particular project then we only need...