The ipad pen cannot be charged with a cable
The iPad pen is plugged directly into the iPad charging port for charging.
The iPad2 ghostwriter is magnetic wireless charging.
So the iPad pen can't be charged with a cable.
Take off the cap of the pencil and plug it directly into the charging port of the iPad to charge it. The pencil also has a adapter that can be directly charged with the lightning data cable.