using System;using System.Net;using System.Net.Sockets;using System.Threading;using System.IO.Ports;using Microsoft.SPOT;using Microsoft.SPOT.Hardware;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.Netduino;namespace barcode_scanner{ public class Program { public static void Main() { InputPort bs = new InputPort(Pins.GPIO_PIN_D1, false, Port.ResistorMode.Disabled); bool bsState; if(bs == true) { bsState = bs.Read(); } } }}
I get an error message stating that "Operator '==' cannot be applied to operands of type 'Microsoft.SPOT.Hardware.InputPort' and 'bool' "
How do i deal with this. Also could anyone please help me in saving data to a memory card for a netduino plus 2 with detailed explanation. Thanks in advance.