     var pwmBasePointer: UnsafeMutablePointer<UInt>!
     var clockBasePointer: UnsafeMutablePointer<UInt>!
     var dmaBasePointer: UnsafeMutablePointer<UInt>!
-    var dma_cb: UnsafeMutablePointer<DMACallback>! = nil
-    var pwm_raw: UnsafeMutablePointer<UInt>! = nil
+    var dmaCallbackPointer: UnsafeMutablePointer<DMACallback>! = nil
+    var pwmRawPointer: UnsafeMutablePointer<UInt>! = nil
     var mailbox: MailBox! = nil
 
     var zeroPattern: Int = 0

        }
    }

    internal func waitOnSendData() {
        dma_wait()
    }

    internal func clearPattern() {
        dma_wait()
        // Stop PWM and clock
        pwmBasePointer.pointee = 0


        guard let mailbox = mailbox else {fatalError("Could allocate mailbox.")}

        dmaCallbackPointer = mailbox.baseVirtualAddress.assumingMemoryBound(to: DMACallback.self)
        pwmRawPointer = (mailbox.baseVirtualAddress + MemoryLayout<DMACallback>.stride).assumingMemoryBound(to: UInt.self)

        // Fill PWM buffer with zeros
        let rows = dataSize / MemoryLayout<UInt>.stride
        for pos in 0..<rows {
            pwmRawPointer.advanced(by: pos).pointee = 0
        }

        // Stop PWM and clock
        pwmBasePointer.pointee = 0
