factor computer • Con fi gurable I/O • Integrated wireless comms * • OS Customisation • Good Community support • Display capabilities • Open Source friendly • Wide range of variants
in the bus • 7 bit addressing, up to 128 target devices • Bidirectional communication • Multiple speed modes: 100kbps, 400kbps, 1Mbps, 1.7Mbps, 3.4Mbps, 5Mbps
val y: Int ) { fun toByte(): Byte { val enableBit = if (enabled) 1 else 0 return (((enableBit shl 7) or (x.xAddressOffset() shl 3)) or y).toByte() } private fun Int.xAddressOffset(): Int { return if (this < 6) return this else (this + 2) } }
val addressesPairList = mutableListOf<AddressByte>() for (x in oldMatrix.indices) { for (y in oldMatrix[x].indices) { if (oldMatrix[x][y] != newMatrix[x][y]) { addressesPairList.add( AddressByte( enabled = newMatrix[x][y], x = x, y = y, ) ) } } } return addressesPairList.toList() }
creation capabilities • Not maintained (last change 6 years ago) • Easy to modify to extend capabilities • No maven repository (Requires checkout and jar generation) https://github.com/tongo/ble-java V1