you visu a lise your project a s a whole. • Helps f inding issues a nd iter a ting on them. • You c a n use online services. • It h a s a le a rning curve.
ll form f a ctor computer • Con f igur a ble I/O • Integr a ted wireless comms * • OS Customis a tion • Good Community support • Displ a y c a p a bilities • Open Source friendly • Wide r a nge of v a ri a nts
in the bus • 7 bit a ddressing, up to 128 t a rget devices • Bidirection a l communic a tion • 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() }
a nd ch a r a cteristic cre a tion c a p a bilities • Not m a int a ined (l a st ch a nge 6 ye a rs a go) • E a sy to modify to extend c a p a bilities • No m a ven repository (Requires checkout a nd j a r gener tion) https://github.com/tongo/ble-j a v a
a tew a y BLE Service Switcher St a te M a trix8ViewModel M a trix8Screen GetM a trix8UseC a se SwitchPed a lUseC a se St a teFlow<List<Ped a l> M a trix8 St a te Ch a r a cteristic ADG2188 Driver