Say I want to get a value of a variable in a sketch from a class I wrote like

sketch

```
int device;
void setUp() {
   device = 1;
}

```

And I have a class
SomeClass.cpp

```
void Device::checkTimedEvent() {
   someDevice = device; //variable from sketch
}

```

I know it's possible to access members from another class where I can include the class and use the :: scope operator but not sure how the sketch relates to classes.
thanks