You are here: Forum Home → ANT+ Forums → ANT+ Bike Power → Thread
device0 = new ANT_Device(); // Create a device instance using the automatic constructor (automatic detection of USB device number and baud rate)
device0.setNetworkKey(USER_NETWORK_NUM, USER_NETWORK_KEY);
Channel0 = device0.getChannel(0); // Get channel from ANT device
Channel1 = device0.getChannel(1);
Channel2 = device0.getChannel(2);
Channel3 = device0.getChannel(3);
Channel4 = device0.getChannel(4);
Network AntPlusNetwork = new Network(USER_NETWORK_NUM, USER_NETWORK_KEY, USER_RADIOFREQ); //Creates an ANT+ network
BikePower = new BikePowerDisplay(Channel1, AntPlusNetwork);
BikePower.TurnOn(); //turns on the ANT+ Power Bike Device