I have just installed a FEZ HAT on my Raspberry Pi 2 running Win10 IoT Core. Also, I have downloaded the code from Bitbucket. I added the following two projects to an existing working solution and referenced in the existing project:
Drivers\GHIElectronics.UAP.Drivers.csproj
Shields\FEZ HAT\GHIElectronics.UAP.Shields.FEZHAT.csproj
I added the following using statement to MainPage.xaml.cs:
using GIS = GHIElectronics.UAP.Shields;
from the GHIElectronics.UAP.Examples.FEZHAT.csproj to my existing project.
in addition, I added the following to MainPage.xaml.cs:
private GIS.FEZHAT hat;
private DispatcherTimer timer;
private bool next;
private int i;
private async void Setup()
private void OnTick(object sender, object e)
from the GHIElectronics.UAP.Examples.FEZHAT.csproj to my existing project.
However I am getting comelier errors that I’m not quite sure what to do with. The first one is on this line within the Setup() method:
this.hat = await GIS.FEZHAT.CreateAsync();
the error from the line above is “The type or namespace name ‘Task’ could not be found (are you missing a using directive or an assembly reference?)”
There are many other complier errors but perhaps I’m doing something silly so I will not list them out here.